6 #ifndef BITCOIN_RANDOM_H 7 #define BITCOIN_RANDOM_H 23 uint64_t
GetRand(uint64_t nMax);
71 nRz = 36969 * (
nRz & 65535) + (
nRz >> 16);
72 nRw = 18000 * (
nRw & 65535) + (
nRw >> 16);
73 return ((
nRw << 16) +
nRz) % nMax;
77 #endif // BITCOIN_RANDOM_H void RandAddSeedPerfmon()
uint32_t insecure_rand_Rw
static uint32_t insecure_rand(void)
uint64_t GetRand(uint64_t nMax)
InsecureRand(bool _fDeterministic=false)
int64_t operator()(int64_t nMax)
void GetRandBytes(unsigned char *buf, int num)
void seed_insecure_rand(bool fDeterministic=false)
uint32_t insecure_rand_Rz