Wrapper class for internal state of the Msws generator.
Definition: state.h:17
Crownstones pseudo random number generator wrapper.
Definition: cs_RandomGenerator.h:17
uint32_t rand()
Generates a new random number and updates the internal state.
Definition: cs_RandomGenerator.h:32
uint32_t operator()()
Definition: cs_RandomGenerator.h:34
RandomGenerator(uint32_t seed)
The given seed need not be very high quality.
Definition: cs_RandomGenerator.h:27
Msws::State _state
Definition: cs_RandomGenerator.h:19
static uint32_t msws()
Generate new pseudo random number from global state variables and update them.
Definition: random.h:59