csnip
0.1
|
Mersenne twister RNG implementation. More...
Classes | |
struct | csnip_rng_mt_state |
State of the Mersenne twister. More... | |
Macros | |
#define | CSNIP_RNG_MT_N 624 |
State array size. | |
Functions | |
csnip_rng | csnip_rng_mt_makerng (csnip_rng_mt_state *state) |
Initialize a generic RNG descriptor. | |
void | csnip_rng_mt_seed (csnip_rng_mt_state *S, int nseed, const uint32_t *seed) |
Seed the MT Random number generator. | |
uint32_t | csnip_rng_mt_getnum (csnip_rng_mt_state *S) |
Produce the next output number. | |