[#RAND_write_file]
= RAND&lowbar;write&lowbar;file
:mrdocs:

Write a seed file containing entropy from the CSPRNG for later RAND&lowbar;load&lowbar;file() use&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
RAND&lowbar;write&lowbar;file(char const* file);
----

== Return Value

Number of bytes written, or &hyphen;1 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file*
| Path of the seed file to create or overwrite&period;
|===


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