5 #ifndef BITCOIN_TEST_UTIL_RANDOM_H 6 #define BITCOIN_TEST_UTIL_RANDOM_H 34 template <RandomNumberGenerator Rng>
40 #endif // BITCOIN_TEST_UTIL_RANDOM_H Seed with a fixed value that never changes over the lifetime of this process.
void SeedRandomStateForTest(SeedRand seed)
Seed the global RNG state for testing and log the seed value.
std::atomic< bool > g_seeded_g_prng_zero
std::atomic< bool > g_used_g_prng
CAmount RandMoney(Rng &&rng)
int64_t CAmount
Amount in satoshis (Can be negative)
static constexpr CAmount MAX_MONEY
No amount larger than this (in satoshi) is valid.
Seed with a compile time constant of zeros.