Fallback only if EGD is selected

This commit is contained in:
Hamcha 2014-10-12 01:05:06 +02:00
parent bd91ef662b
commit dd021e6449
1 changed files with 3 additions and 1 deletions

View File

@ -522,7 +522,9 @@ rb_init_prng(const char *path, prng_seed_t seed_type)
{
/* We may not have EGD (old OpenSSL / LibreSSL), fall back to default */
#ifndef HAVE_SSL_RAND_EGD
seed_type = RB_PRNG_DEFAULT;
if (seed_type == RB_PRNG_EGD) {
seed_type = RB_PRNG_DEFAULT;
}
#endif
if(seed_type == RB_PRNG_DEFAULT) {