84 #define RANDOM_DEFAULT_SEED (0)
87 unsigned long (*
rand)(
unsigned long*,
unsigned long*);
145 #define PRANDOM_ALLOC() Prandom_alloc()
146 #define PRANDOM_FREE(r) Prandom_free(r)
147 #define PRANDOM_SEED(r, s) random_seed(r, s)
148 #define PRANDOM_GENERATE(r) random_generate(r)
random_t * Prandom_alloc()
Definition: random.c:102
void random_seed(random_t *randomPtr, unsigned long seed)
Definition: random.c:141
void random_free(random_t *randomPtr)
Definition: random.c:119
unsigned long(* rand)(unsigned long *, unsigned long *)
Definition: random.h:87
static int seed
Definition: mesh.cpp:40
unsigned long mt[N]
Definition: random.h:88
#define N
Definition: mt19937ar.h:135
unsigned long mti
Definition: random.h:89
unsigned long random_generate(random_t *randomPtr)
Definition: random.c:152
random_t * random_alloc()
Definition: random.c:84
void Prandom_free(random_t *randomPtr)
Definition: random.c:130