RAND_file_name

Build the default path for the PRNG seed file into a caller-provided buffer.

Synopsis

Declared in <openssl/rand.h>

char const*
RAND_file_name(
    char* file,
    size_t num);

Return Value

Pointer to file on success, or NULL on error.

Parameters

NameDescription
fileOutput buffer that receives the path (for example from RANDFILE or $HOME/.rnd).
numSize of file in bytes.