19 #define GHOST_RAND_SEED_ALL (GHOST_RAND_SEED_PU|GHOST_RAND_SEED_RANK|GHOST_RAND_SEED_TIME) 
ghost_rand_seed_type
Definition: rand.h:11
 
ghost_error ghost_rand_seed(ghost_rand_seed_type which, unsigned int seed)
Set the random number seed. 
Definition: rand.c:74
 
Types, functions and macros for error handling. 
 
void ghost_rand_destroy()
Destroy the random states. 
Definition: rand.c:151
 
ghost_error
Error return type. 
Definition: error.h:23
 
bool ghost_rand_customseed()
Check whether a custom seed has been set. 
Definition: rand.c:143
 
int ghost_rand_cu_seed_get()
Get the CUDA random seed. 
Definition: rand.c:161
 
ghost_error ghost_rand_create()
Create a random seed for each PU of the machine. 
Definition: rand.c:17
 
ghost_error ghost_rand_get(unsigned int **s)
Get a random state for the calling thread. 
Definition: rand.c:59