force random number generator early

This commit is contained in:
David Rose 2002-09-28 18:24:17 +00:00
parent 942f484326
commit 4784897b02
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#ifdef HAVE_SSL
#include <openssl/rand.h>
#ifndef NDEBUG
#include <openssl/err.h>
#endif
@ -155,6 +156,10 @@ initialize_ssl() {
#endif
OpenSSL_add_all_algorithms();
// Call RAND_status() here to force the random number generator to
// initialize early.
RAND_status();
_ssl_initialized = true;
}