[#RAND_set0_private] = RAND_set0_private :mrdocs: Install `rand` as the private DRBG for a library context, transferring ownership. == Synopsis Declared in `<openssl/rand.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int RAND_set0_private( 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 private RNG is replaced, or NULL for the default. | *rand* | RAND context that becomes the private generator used by RAND_priv_bytes(); `ctx` takes ownership. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#