Fallback only if EGD is selected
This commit is contained in:
parent
bd91ef662b
commit
dd021e6449
|
@ -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 */
|
/* We may not have EGD (old OpenSSL / LibreSSL), fall back to default */
|
||||||
#ifndef HAVE_SSL_RAND_EGD
|
#ifndef HAVE_SSL_RAND_EGD
|
||||||
|
if (seed_type == RB_PRNG_EGD) {
|
||||||
seed_type = RB_PRNG_DEFAULT;
|
seed_type = RB_PRNG_DEFAULT;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(seed_type == RB_PRNG_DEFAULT) {
|
if(seed_type == RB_PRNG_DEFAULT) {
|
||||||
|
|
Loading…
Reference in New Issue