![]() |
Bitcoin Core 31.1.0
P2P Digital Currency
|
#include <consensus/amount.h>#include <random.h>#include <uint256.h>#include <atomic>#include <cstdint>Go to the source code of this file.
Enumerations | |
| enum class | SeedRand { ZEROS , FIXED_SEED } |
Functions | |
| void | SeedRandomStateForTest (SeedRand seed) |
| Seed the global RNG state for testing and log the seed value. | |
| template<RandomNumberGenerator Rng> | |
| CAmount | RandMoney (Rng &&rng) |
Variables | |
| std::atomic< bool > | g_seeded_g_prng_zero |
| std::atomic< bool > | g_used_g_prng |
|
strong |
|
inline |
| 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.
|
extern |
Definition at line 15 of file random.cpp.
|
extern |
Definition at line 599 of file random.cpp.