Return the thread‐local public DRBG used by RAND_bytes() for a library context.

Synopsis

Declared in <openssl/rand.h>

EVP_RAND_CTX*
RAND_get0_public(OSSL_LIB_CTX* ctx);

Return Value

Internal EVP_RAND_CTX pointer (do not free).

Parameters

Name

Description

ctx

Library context, or NULL for the default.

Created with MrDocs