[#RAND_priv_bytes]
= RAND&lowbar;priv&lowbar;bytes
:mrdocs:

Generate private random bytes using a separate DRBG instance from RAND&lowbar;bytes()&period;

== Synopsis

Declared in `&lt;openssl&sol;rand&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
RAND&lowbar;priv&lowbar;bytes(
    unsigned char* buf,
    int num);
----

== Return Value

1 on success, &hyphen;1 if not supported by the current RAND method, or 0 on other failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *buf*
| Buffer that receives `num` random bytes&period;
| *num*
| Number of bytes to generate&period;
|===


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