X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2FRAND_load_file.pod;h=dd79af28ae374324424e6c357f151f17d9750d6e;hp=6a19b395970db626cdf3ed95981bff30fc3248ea;hb=13c03c8d6da334bb1cde6ce4133e7c75b3b76947;hpb=e2f92610bcc21dc5b943f9250e34c207ab35fef0 diff --git a/doc/crypto/RAND_load_file.pod b/doc/crypto/RAND_load_file.pod index 6a19b39597..dd79af28ae 100644 --- a/doc/crypto/RAND_load_file.pod +++ b/doc/crypto/RAND_load_file.pod @@ -18,8 +18,16 @@ RAND_load_file, RAND_write_file, RAND_file_name - PRNG seed file RAND_file_name() generates a default path for the random seed file. B points to a buffer of size B in which to store the -filename. The seed file is $RANDFILE if that environment variable is -set, $HOME/.rnd otherwise. If $HOME is not set either, or B is +filename. + +On Windows the seed file is %RANDFILE% if that environment variable is set. +Otherwise the file is called ".rnd" in one of the following locations (in order +of preference): %TMP%, %TEMP%, %USERPROFILE%, %SYSTEMROOT%, %HOME%, "C:". + +On all other systems the seed file is $RANDFILE if that environment variable is +set, $HOME/.rnd otherwise. + +If $HOME (on non Windows systems) is not set either, or B is too small for the path name, an error occurs. RAND_load_file() reads a number of bytes from file B and @@ -45,8 +53,6 @@ error. L, L, L -=cut - =head1 COPYRIGHT Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.