Macros | |
#define | HIGH_BITS 0x80000000 |
#define | KNUTH_MULT 1812433253ul |
#define | KNUTH_SHIFT 30 |
#define | LOW_BITS 0x7fffffff |
#define | MT state->state |
#define | MT_FEEDBACK 397 |
#define | MT_RECURRENCE 0x9908b0df |
#define | MT_TEMPER_B 0x9d2c5680 |
#define | MT_TEMPER_C 0xefc60000 |
#define | MT_TEMPER_L 18 |
#define | MT_TEMPER_S 7 |
#define | MT_TEMPER_T 15 |
#define | MT_TEMPER_U 11 |
Functions | |
uint32_t | mtwist_rand (mtstate_t *state) |
void | mtwist_seed (mtstate_t *state, uint32_t seed) |
#define HIGH_BITS 0x80000000 |
#define KNUTH_MULT 1812433253ul |
#define KNUTH_SHIFT 30 |
#define LOW_BITS 0x7fffffff |
#define MT state->state |
#define MT_FEEDBACK 397 |
#define MT_RECURRENCE 0x9908b0df |
#define MT_TEMPER_B 0x9d2c5680 |
#define MT_TEMPER_C 0xefc60000 |
#define MT_TEMPER_L 18 |
#define MT_TEMPER_S 7 |
#define MT_TEMPER_T 15 |
#define MT_TEMPER_U 11 |
uint32_t mtwist_rand | ( | mtstate_t * | state | ) |
void mtwist_seed | ( | mtstate_t * | state, |
uint32_t | seed | ||
) |