| 624 | } |
| 625 | |
| 626 | void FastRandomContext::fillrand(std::span<std::byte> output) noexcept |
| 627 | { |
| 628 | if (requires_seed) RandomSeed(); |
| 629 | rng.Keystream(output); |
| 630 | } |
| 631 | |
| 632 | FastRandomContext::FastRandomContext(const uint256& seed) noexcept : requires_seed(false), rng(MakeByteSpan(seed)) {} |
| 633 |