[#RAND_get0_primary]
= RAND&lowbar;get0&lowbar;primary
:mrdocs:

Return the shared primary DRBG for a library context (used to reseed public&sol;private DRBGs)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_RAND_CTX.adoc[EVP&lowbar;RAND&lowbar;CTX]*
RAND&lowbar;get0&lowbar;primary(xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx);
----

== Return Value

Internal EVP&lowbar;RAND&lowbar;CTX pointer (do not free)&semi; not safe for concurrent direct use&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Library context, or NULL for the default&period;
|===


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