[#EVP_RAND_reseed]
= EVP&lowbar;RAND&lowbar;reseed
:mrdocs:

Reseed a DRBG&sol;RAND context with optional entropy and additional input&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;RAND&lowbar;reseed(
    xref:EVP_RAND_CTX.adoc[EVP&lowbar;RAND&lowbar;CTX]* ctx,
    int prediction&lowbar;resistance,
    unsigned char const* ent,
    size&lowbar;t ent&lowbar;len,
    unsigned char const* addin,
    size&lowbar;t addin&lowbar;len);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| RAND context to reseed&period;
| *prediction&lowbar;resistance*
| Nonzero to request prediction resistance when supported&period;
| *ent*
| Optional entropy bytes, or NULL to let the implementation gather entropy&period;
| *ent&lowbar;len*
| Length of `ent&period;`
| *addin*
| Optional additional input bytes, or NULL&period;
| *addin&lowbar;len*
| Length of `addin&period;`
|===


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