[#BloombergLP-bdlb-RandomDevice-getRandomBytesNonBlocking]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/RandomDevice.adoc[RandomDevice]::getRandomBytesNonBlocking
:relfileprefix: ../../../
:mrdocs:

Read the specified `numBytes` from the system non&hyphen;blocking random number generator into the specified `buffer`&period; Returns 0 on success, non&hyphen;zero otherwise&period; 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&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;randomdevice&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
getRandomBytesNonBlocking(
    unsigned char* buffer,
    xref:BloombergLP/bdlb/RandomDevice/size_t.adoc[size&lowbar;t] numBytes);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
