From 4784897b0224ef3a01441f22438dae8c9f29fdd5 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 28 Sep 2002 18:24:17 +0000 Subject: [PATCH] force random number generator early --- panda/src/downloader/httpClient.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panda/src/downloader/httpClient.cxx b/panda/src/downloader/httpClient.cxx index 8c2e9b1f60..eb91bcadf8 100644 --- a/panda/src/downloader/httpClient.cxx +++ b/panda/src/downloader/httpClient.cxx @@ -25,6 +25,7 @@ #ifdef HAVE_SSL +#include #ifndef NDEBUG #include #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; }