[#RAND_set_rand_engine] = RAND_set_rand_engine :mrdocs: Select an ENGINE as the source of the legacy RAND_METHOD (deprecated). == Synopsis Declared in `<openssl/rand.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int RAND_set_rand_engine(xref:ENGINE.adoc[ENGINE]* engine); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Description Deprecated in OpenSSL 3.0; prefer EVP_RAND / provider‐based DRBGs. == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *engine* | ENGINE providing a RAND implementation, or NULL to clear. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#