Install rand as the public DRBG for a library context, transferring ownership.
Synopsis
Declared in <openssl/rand.h>
int
RAND_set0_public(
OSSL_LIB_CTX* ctx,
EVP_RAND_CTX* rand);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
ctx |
Library context whose public RNG is replaced, or NULL for the default. |
rand |
RAND context that becomes the public generator; |
Created with MrDocs