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