[#RAND_get_rand_method]
= RAND&lowbar;get&lowbar;rand&lowbar;method
:mrdocs:

Return the currently selected legacy RAND&lowbar;METHOD used for PRNG operations&period;

== Synopsis

Declared in `&lt;openssl&sol;rand&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:RAND_METHOD.adoc[RAND&lowbar;METHOD] const*
RAND&lowbar;get&lowbar;rand&lowbar;method();
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Description

Deprecated in OpenSSL 3&period;0&semi; prefer RAND&lowbar;set&lowbar;DRBG&lowbar;type() and EVP&lowbar;RAND&period;

== Return Value

Pointer to the active RAND&lowbar;METHOD (not to be freed)&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
