# Defined Types

Types defined to be used with pseudo-random generator functions

Summary

Defined Types | Types defined to be used with pseudo-random generator functions
Enumerations |
GLFSR16_TAPSET | This enumeration hold sets of valid TAPS for generating complete pseudo-random sequences using 16-bits Galois LFSR method.

### Enumerations

### GLFSR16_TAPSET

This enumeration hold sets of valid TAPS for generating complete pseudo-random sequences using 16-bits Galois LFSR method. There are 1024 different TAP sets (GLFSR16_TAPSET_YYYY, with YYYY ranging from 0000 to 1023), each of them defining a different traversal order for the pseudo-random number generator. All these 1024 traversal orders are guaranteed to generate sequences of 65535 pseudo-random numbers without repetition.

Use this TAPSETS along with the function cpct_setSeed_glfsr16 to select the traversal order for the 16-bits G-LFSR pseudo-random number generator. Default one is GLFSR16_TAPSET_1023. An example of setting a new traversal tapset could be this one:

>     // Set TAPSET 0020 as new traversal order for the pseudo-random
>     // number generator based on 16-bits Galois LFSR method.
>     cpct_setSeed_glfsr16(GLFSR16_TAPSET_0020);

Sets machine state (seed) for 16-bits Galois Linear-Feedback Shift Register pseudo-random number generator.
Close