csnip  0.1
Classes | Macros | Functions
rng_mt.h File Reference
#include <stdint.h>
#include <csnip/rng.h>
Include dependency graph for rng_mt.h:

Go to the source code of this file.

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.