RAND_write_file

Write a seed file containing entropy from the CSPRNG for later RAND_load_file() use.

Synopsis

Declared in <openssl/rand.h>

int
RAND_write_file(char const* file);

Return Value

Number of bytes written, or -1 on failure.

Parameters

NameDescription
filePath of the seed file to create or overwrite.