Go to the source code of this file.
Functions | |
CpvStaticDeclare (int, nstreams) | |
CpvStaticDeclare (CrnStream, _defaultStream) | |
void | CrnInit (void) |
void | CrnInitStream (CrnStream *genptr, unsigned int seed, int type) |
double | CrnDouble (CrnStream *genptr) |
int | CrnInt (CrnStream *genptr) |
float | CrnFloat (CrnStream *genptr) |
void | CrnSrand (unsigned int seed) |
int | CrnRand (void) |
double | CrnDrand (void) |
Variables | |
unsigned int | _prime_list [] |
unsigned int | _PARAMLIST [3][2] |
CpvStaticDeclare | ( | int | , | |
nstreams | ||||
) |
CpvStaticDeclare | ( | CrnStream | , | |
_defaultStream | ||||
) |
Definition at line 68 of file random.C.
References _PARAMLIST, _prime_list, CrnDouble(), rngen_::multiplier, rngen_::prime, and rngen_::state.
Referenced by CrnInit(), CrnSrand(), and main().
double CrnDouble | ( | CrnStream * | genptr | ) |
Definition at line 106 of file random.C.
References rngen_::state.
Referenced by CrnDrand(), CrnFloat(), CrnInitStream(), CrnInt(), and randVal().
Definition at line 113 of file random.C.
References CrnDouble().
Referenced by CrnRand().
Definition at line 118 of file random.C.
References CrnDouble().
void CrnSrand | ( | unsigned int | seed | ) |
Definition at line 123 of file random.C.
References CrnInitStream().
Referenced by CldModuleInit().
int CrnRand | ( | void | ) |
Definition at line 128 of file random.C.
References CrnInt().
Referenced by AddEdges(), WSLB::AssembleStats(), NborBaseLB::AssembleStats(), CkCppInterpreter::CkCppInterpreter(), CldAckNoTaskHandler(), CldEnqueue(), CldHopHandler(), CldMoveAllSeedsAway(), CldNodeEnqueue(), RefinerTemp::create(), RefinerApprox::create(), Refiner::create(), gengraph(), rep::POSE_Linear_rand(), rep::POSE_Uniform_rand(), StealLoad(), and StealTask().
double CrnDrand | ( | void | ) |
Definition at line 133 of file random.C.
References CrnDouble().
Referenced by chooseProc(), and SIMPLE_POLYMORPH_REDUCTION().
unsigned int _prime_list |
unsigned int _PARAMLIST[3][2] |
Initial value:
{{0x87b0b0fdU, 0x27bb2ee6U}, {0xe78b6955U,0x2c6fe96eU}, {0x31a53f85U,0x369dea0fU}}
Definition at line 35 of file random.C.
Referenced by CrnInitStream().