[#RAND_set0_public] = RAND_set0_public :mrdocs: Install `rand` as the public DRBG for a library context, transferring ownership. == Synopsis Declared in `<openssl/rand.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int RAND_set0_public( xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* ctx, xref:EVP_RAND_CTX.adoc[EVP_RAND_CTX]* rand); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Library context whose public RNG is replaced, or NULL for the default. | *rand* | RAND context that becomes the public generator; `ctx` takes ownership. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#