Mix up to max_bytes of file file into the PRNG seed pool.

Synopsis

Declared in <openssl/rand.h>

int
RAND_load_file(
    char const* file,
    long max_bytes);

Return Value

Number of bytes read, or a negative value on error.

Parameters

Name

Description

file

Path of the seed file to read.

max_bytes

Maximum bytes to read, or ‐1 to read the whole file.

Created with MrDocs