BloombergLP::bdlb::RandomDevice

This struct provides a namespace for a suite of functions used for acquiring random numbers from the system.

Synopsis

Declared in <bdlb_randomdevice.h>

struct RandomDevice;

Type Aliases

NameDescription
size_t Alias for bsls::Types::size_type, used for buffer sizes.

Static Member Functions

NameDescription
getRandomBytes Load random bytes from the system random number generator.
getRandomBytesNonBlocking Load random bytes from the system non-blocking random number generator.