mn_random_lfsr.hpp
Go to the documentation of this file.
An Intarface for all randoms classes in this library.
Definition: mn_random.hpp:32
Pseudro-Random Number Generator based on a 32-bit linear-feedback shift register.
Definition: mn_random_lfsr.hpp:36
unsigned int get_polymask()
Get the polymask.
Definition: mn_random_lfsr.hpp:65
void set_polymask(unsigned int mask)
Set the a new polymask.
Definition: mn_random_lfsr.hpp:71
virtual unsigned char rand8() override
Get a random unsigned char number.
Definition: mn_random_lfsr.cpp:29
void set_seed(unsigned int seed, unsigned int mask)
Set a new seed, with new polymask.
Definition: mn_random_lfsr.hpp:78
basic_random_lfsr(unsigned int startSeed=0xFEABDC72, unsigned int polyMask=0xA1B3C6DF)
Definition: mn_random_lfsr.hpp:38
virtual unsigned short rand16() override
Get a random unsigned short number.
Definition: mn_random_lfsr.cpp:34
virtual unsigned int rand32() override
Get a random unsigned int number.
Definition: mn_random_lfsr.cpp:44
Definition: mn_allocator_typetraits.hpp:25