[#GetStrongRandBytes]
= GetStrongRandBytes
:mrdocs:

Gather entropy from various sources, feed it into the internal PRNG, and generate random data using it&period;

== Synopsis

Declared in `&lt;random&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
GetStrongRandBytes(std::span&lt;unsigned char&gt; bytes) noexcept;
----

== Description

This function will cause failure whenever the OS RNG fails&period;

The normal PRNG is never bypassed here, even in test mode&period;

Thread&hyphen;safe&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bytes*
| The output buffer to fill with strong random data&period;
|===


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