[#BloombergLP-bdlb-RandomDevice] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::RandomDevice :relfileprefix: ../../ :mrdocs: This `struct` provides a namespace for a suite of functions used for acquiring random numbers from the system. == Synopsis Declared in `<bdlb_randomdevice.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct RandomDevice; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/RandomDevice/size_t.adoc[`size_t`] | Alias for `bsls::Types::size_type`, used for buffer sizes. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlb/RandomDevice/getRandomBytes.adoc[`getRandomBytes`] | Load random bytes from the system random number generator. | xref:BloombergLP/bdlb/RandomDevice/getRandomBytesNonBlocking.adoc[`getRandomBytesNonBlocking`] | Load random bytes from the system non‐blocking random number generator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#