| 599 | std::atomic<bool> g_used_g_prng{false}; // Only accessed from tests |
| 600 | |
| 601 | void GetRandBytes(std::span<unsigned char> bytes) noexcept |
| 602 | { |
| 603 | g_used_g_prng = true; |
| 604 | ProcRand(bytes.data(), bytes.size(), RNGLevel::FAST, /*always_use_real_rng=*/false); |
| 605 | } |
| 606 | |
| 607 | void GetStrongRandBytes(std::span<unsigned char> bytes) noexcept |
| 608 | { |