[#EVP_RAND_fetch]
= EVP&lowbar;RAND&lowbar;fetch
:mrdocs:

Fetch a random&hyphen;number generator implementation from providers&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_RAND.adoc[EVP&lowbar;RAND]*
EVP&lowbar;RAND&lowbar;fetch(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* algorithm,
    char const* properties);
----

== Return Value

Fetched EVP&lowbar;RAND, or NULL on error&semi; free with EVP&lowbar;RAND&lowbar;free&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *libctx*
| Library context to search, or NULL for the default&period;
| *algorithm*
| Algorithm name such as &quot;CTR&hyphen;DRBG&quot; or &quot;HASH&hyphen;DRBG&quot;&period;
| *properties*
| Property query string, or NULL&period;
|===


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