Class that provides a random number generator. The RNG can be seeded by reading noise from an unused ...
Definition rng.h:27
uint8_t rand()
Create a pseudo-random number between 0 and 255.
RNG()=default
Construct a new RNG object.
static bit_t readADC()
Read the LSB from ADC0.
uint8_t mRand
The RNG's state.
Definition rng.h:54
void seed()
Seed the RNG by reading the ADC's LSB 8 times.
static void init()
Initialize the RNG & underlying ADC.