| 61 | void Seed(FastRandomContext& ctx); |
| 62 | |
| 63 | static inline void SeedInsecureRand(SeedRand seed = SeedRand::SEED) |
| 64 | { |
| 65 | if (seed == SeedRand::ZEROS) { |
| 66 | g_insecure_rand_ctx = FastRandomContext(/*fDeterministic=*/true); |
| 67 | } else { |
| 68 | Seed(g_insecure_rand_ctx); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | static inline uint32_t InsecureRand32() { return g_insecure_rand_ctx.rand32(); } |
| 73 | static inline uint256 InsecureRand256() { return g_insecure_rand_ctx.rand256(); } |
no test coverage detected