Create a RAND context for rand, optionally chaining from a parent DRBG.
Declared in <openssl/evp.h>
EVP_RAND_CTX*
EVP_RAND_CTX_new(
EVP_RAND* rand,
EVP_RAND_CTX* parent);
New EVP_RAND_CTX, or NULL on failure; free with EVP_RAND_CTX_free().
| Name | Description |
|---|---|
| rand | Fetched EVP_RAND implementation (reference count is incremented). |
| parent | Optional parent EVP_RAND_CTX used as entropy source, or NULL. |