From ddcd70b152964db5ced3623f26c61f7a4f8d31f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 18 May 2017 08:36:00 -0400 Subject: [PATCH] Fix "error C2065: prng undeclared identifier" under Windows Phone --- validat1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validat1.cpp b/validat1.cpp index fa43cc92..27332172 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -625,7 +625,7 @@ bool TestRandomPool() std::cout << " GenerateWord32 and Crop\n"; } -#if !defined(NO_OS_DEPENDENCE) +#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE) std::cout << "\nTesting AutoSeeded RandomPool generator...\n\n"; { AutoSeededRandomPool prng; @@ -718,7 +718,7 @@ bool TestRandomPool() return pass; } -#if !defined(NO_OS_DEPENDENCE) +#if !defined(NO_OS_DEPENDENCE) && defined(OS_RNG_AVAILABLE) bool TestAutoSeededX917() { // This tests Auto-Seeding and GenerateIntoBufferedTransformation.