[#RAND_load_file]
= RAND&lowbar;load&lowbar;file
:mrdocs:

Mix up to `max&lowbar;bytes` of file `file` into the PRNG seed pool&period;

== Synopsis

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

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

== Return Value

Number of bytes read, or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *file*
| Path of the seed file to read&period;
| *max&lowbar;bytes*
| Maximum bytes to read, or &hyphen;1 to read the whole file&period;
|===


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