9 static uint32_t xor_shift_seed;
12 xor_shift_seed = seed;
20 xor_shift_seed ^= xor_shift_seed << 13;
21 xor_shift_seed ^= xor_shift_seed >> 17;
22 xor_shift_seed ^= xor_shift_seed << 5;
27 return xor_shift_seed;
uint32_t NextXorShiftUint32(void)
Returns the next generated pseudo-random number.
void CalculateNextSeed(void)
Pseudo-random number algorithm The algorithm used to create the pseudo-random numbers. Works directly on the file global variable.
void SetXorShiftSeed(uint32_t seed)
Sets the initial seed for the XOR shift pseudo-random algorithm.