#include <consensus/amount.h>
#include <random.h>
#include <uint256.h>
#include <atomic>
#include <cstdint>
Go to the source code of this file.
◆ SeedRand
Enumerator |
---|
ZEROS | Seed with a compile time constant of zeros.
|
FIXED_SEED | Seed with a fixed value that never changes over the lifetime of this process.
The seed is read from the RANDOM_CTX_SEED environment variable if set, otherwise generated randomly once, saved, and reused.
|
Definition at line 15 of file random.h.
◆ RandMoney()
◆ SeedRandomStateForTest()
void SeedRandomStateForTest |
( |
SeedRand |
seed | ) |
|
Seed the global RNG state for testing and log the seed value.
This affects all randomness, except GetStrongRandBytes().
Definition at line 19 of file random.cpp.
◆ g_seeded_g_prng_zero
std::atomic<bool> g_seeded_g_prng_zero |
|
extern |
◆ g_used_g_prng
std::atomic<bool> g_used_g_prng |
|
extern |