diff options
author | Pauli <paul.dale@oracle.com> | 2018-11-07 22:22:01 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2018-11-07 22:22:01 +0100 |
commit | ac765685d4b08a48cefffc71c434760045154dad (patch) | |
tree | 924e9177b1b6a9fd82d589b94e991327d1399176 /crypto/rand | |
parent | Rename the rand_drbg_st data member "pool" to "seed_pool" (diff) | |
download | openssl-ac765685d4b08a48cefffc71c434760045154dad.tar.xz openssl-ac765685d4b08a48cefffc71c434760045154dad.zip |
Add missing RAND initialisation call.
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/7587)
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 4f1a134900..277403ca12 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -363,7 +363,8 @@ void rand_cleanup_int(void) */ void RAND_keep_random_devices_open(int keep) { - rand_pool_keep_random_devices_open(keep); + if (RUN_ONCE(&rand_init, do_rand_init)) + rand_pool_keep_random_devices_open(keep); } /* |