51static uint16_t counter;
57 uint16_t tmp = a + b + counter++;
58 a = b ^ (b >> RSHIFT);
59 b = c + (c << LSHIFT);
60 c = ((c << BARREL_SHIFT) | (c >> (16 - BARREL_SHIFT))) + tmp;
71 for(uint_fast8_t i = 0; i < 10; i++) {
Header file for generating non-cryptographic random numbers.
Structure of PRNG drivers.
uint_fast16_t(* rand)(void)
Generates a 16-bit pseudo-random number.
void(* seed)(uint64_t seed)
Seeds the PRNG with a seed.