[#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‐blocking random number generator into the specified `buffer`. Returns 0 on success, non‐zero otherwise. 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. == Synopsis Declared in `<bdlb_randomdevice.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int getRandomBytesNonBlocking( unsigned char* buffer, xref:BloombergLP/bdlb/RandomDevice/size_t.adoc[size_t] numBytes); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#