Gather entropy from various sources, feed it into the internal PRNG, and generate random data using it.
Declared in <random.h>
void
GetStrongRandBytes(std::span<unsigned char> bytes) noexcept;
This function will cause failure whenever the OS RNG fails.
The normal PRNG is never bypassed here, even in test mode.
Thread-safe.
| Name | Description |
|---|---|
| bytes | The output buffer to fill with strong random data. |