Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/setup_common.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | static inline void SeedInsecureRand(SeedRand seed = SeedRand::SEED) { | ||||
} else { | } else { | ||||
Seed(g_insecure_rand_ctx); | Seed(g_insecure_rand_ctx); | ||||
} | } | ||||
} | } | ||||
static inline uint32_t InsecureRand32() { | static inline uint32_t InsecureRand32() { | ||||
return g_insecure_rand_ctx.rand32(); | return g_insecure_rand_ctx.rand32(); | ||||
} | } | ||||
static inline uint160 InsecureRand160() { | |||||
return g_insecure_rand_ctx.rand160(); | |||||
} | |||||
static inline uint256 InsecureRand256() { | static inline uint256 InsecureRand256() { | ||||
return g_insecure_rand_ctx.rand256(); | return g_insecure_rand_ctx.rand256(); | ||||
} | } | ||||
static inline uint64_t InsecureRandBits(int bits) { | static inline uint64_t InsecureRandBits(int bits) { | ||||
return g_insecure_rand_ctx.randbits(bits); | return g_insecure_rand_ctx.randbits(bits); | ||||
} | } | ||||
static inline uint64_t InsecureRandRange(uint64_t range) { | static inline uint64_t InsecureRandRange(uint64_t range) { | ||||
return g_insecure_rand_ctx.randrange(range); | return g_insecure_rand_ctx.randrange(range); | ||||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |