[#EVP_RAND_nonce]
= EVP&lowbar;RAND&lowbar;nonce
:mrdocs:

Generate a nonce of `outlen` bytes from RAND context `ctx&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;RAND&lowbar;nonce(
    xref:EVP_RAND_CTX.adoc[EVP&lowbar;RAND&lowbar;CTX]* ctx,
    unsigned char* out,
    size&lowbar;t outlen);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Instantiated RAND context&period;
| *out*
| Buffer receiving the nonce&period;
| *outlen*
| Number of nonce bytes to produce&period;
|===


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