Fix compile error when NO_OS_DEPENDENCE

pull/730/head
Jeffrey Walton 2018-10-20 07:36:11 -04:00
parent 1de4f39f86
commit 1d0c659fd7
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 3 additions and 3 deletions

View File

@ -604,7 +604,7 @@ bool TestRandomPool()
bool pass=true; bool pass=true;
try {prng.reset(new RandomPool);} try {prng.reset(new RandomPool);}
catch (OS_RNG_Err &) {} catch (Exception &) {}
if(prng.get()) if(prng.get())
{ {
@ -614,7 +614,7 @@ bool TestRandomPool()
#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE) #if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE)
try {prng.reset(new AutoSeededRandomPool);} try {prng.reset(new AutoSeededRandomPool);}
catch (OS_RNG_Err &) {} catch (Exception &) {}
if(prng.get()) if(prng.get())
{ {
@ -626,7 +626,7 @@ bool TestRandomPool()
// Old, PGP 2.6 style RandomPool. Added because users were still having problems // Old, PGP 2.6 style RandomPool. Added because users were still having problems
// with it in 2017. The missing functionality was a barrier to upgrades. // with it in 2017. The missing functionality was a barrier to upgrades.
try {prng.reset(new OldRandomPool);} try {prng.reset(new OldRandomPool);}
catch (OS_RNG_Err &) {} catch (Exception &) {}
if(prng.get()) if(prng.get())
{ {