[#EVP_RAND_enable_locking]
= EVP&lowbar;RAND&lowbar;enable&lowbar;locking
:mrdocs:

Enable thread&hyphen;safe locking on a RAND context for concurrent use&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;RAND&lowbar;enable&lowbar;locking(xref:EVP_RAND_CTX.adoc[EVP&lowbar;RAND&lowbar;CTX]* ctx);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| RAND context that should serialize access internally&period;
|===


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