[#EVP_RAND_instantiate] = EVP_RAND_instantiate :mrdocs: Instantiate (seed) an EVP_RAND_CTX so it can generate random bytes. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_RAND_instantiate( xref:EVP_RAND_CTX.adoc[EVP_RAND_CTX]* ctx, unsigned int strength, int prediction_resistance, unsigned char const* pstr, size_t pstr_len, xref:OSSL_PARAM.adoc[OSSL_PARAM] const params[]); ---- == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | RNG context to instantiate. | *strength* | Requested security strength in bits. | *prediction_resistance* | Non‐zero to force a reseed from live entropy. | *pstr* | Optional personalization string, or NULL. | *pstr_len* | Length of `pstr` in bytes. | *params* | Optional OSSL_PARAM array of additional parameters, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#