[#RAND_set_rand_method]
= RAND&lowbar;set&lowbar;rand&lowbar;method
:mrdocs:

Install the legacy RAND&lowbar;METHOD used by RAND&lowbar;bytes and related APIs (deprecated)&period;

== Synopsis

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

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

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

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *meth*
| Method table to make current, or NULL to clear&period;
|===


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