5#ifndef BITCOIN_TEST_UTIL_RANDOM_H
6#define BITCOIN_TEST_UTIL_RANDOM_H
34template <RandomNumberGenerator Rng>
static constexpr CAmount MAX_MONEY
No amount larger than this (in satoshi) is valid.
int64_t CAmount
Amount in satoshis (Can be negative)
@ 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.
std::atomic< bool > g_used_g_prng
std::atomic< bool > g_seeded_g_prng_zero
CAmount RandMoney(Rng &&rng)
void SeedRandomStateForTest(SeedRand seed)
Seed the global RNG state for testing and log the seed value.