Fix compile error when NO_OS_DEPENDENCE
parent
1de4f39f86
commit
1d0c659fd7
|
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue