Load random bytes from the system non-blocking random number generator.
Declared in <bdlb_randomdevice.h>
static
int
getRandomBytesNonBlocking(
unsigned char* buffer,
size_t numBytes);
Read the specified numBytes from the system non-blocking random number generator into the specified buffer. Note that the cryptographic strength of samples drawn from this pool may or may not be lower than that of those drawn from the blocking pool, and may vary by platform.
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| buffer | buffer to receive the random bytes |
| numBytes | number of bytes to read into buffer |