openssl/crypto/rand
Matt Caswell 13c03c8d6d Change default directory for storing the .rnd file on Windows
Previously we would try %RANDFILE%, then %HOME% and finally "C:".
Unfortunately this often ends up being "C:" which the user may not
have write permission for.

Now we try %RANDFILE% first, and then the same set of environment vars
as GetTempFile() uses, i.e. %TMP%, then %TEMP%, %USERPROFILE% and
%SYSTEMROOT%. If all else fails we fall back to %HOME% and only then "C:".

Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-06-17 17:26:18 +01:00
..
build.info Remove Netware and OS/2 2016-03-17 17:06:57 -04:00
md_rand.c Fix some RAND bugs 2016-06-01 10:45:18 -04:00
rand_egd.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
rand_err.c Remove unused error/function codes. 2016-05-23 15:04:23 -04:00
rand_lcl.h Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
rand_lib.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
rand_unix.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
rand_vms.c Copyright consolidation 09/10 2016-05-17 14:53:16 -04:00
rand_win.c Added define for STATUS_SUCCESS 2016-06-03 12:18:59 -04:00
randfile.c Change default directory for storing the .rnd file on Windows 2016-06-17 17:26:18 +01:00