summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-10-10 18:03:31 -0400
committerJeffrey Walton <noloader@gmail.com>2016-10-10 18:03:31 -0400
commit145a83e4cd12871f573920acee8184346f7dcd74 (patch)
tree3d7ee6c93894bdc2ffdcc60ae1270e6a6d31ecbe /test.cpp
parentacf281fef619c725b5b1847874cdb2b52e3791f5 (diff)
downloadcryptopp-git-145a83e4cd12871f573920acee8184346f7dcd74.tar.gz
Add test suite RandomNumberGenerator t anonymous namespace
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.cpp b/test.cpp
index 142dab02..960cec90 100644
--- a/test.cpp
+++ b/test.cpp
@@ -119,16 +119,16 @@ void PrintSeedAndThreads(const std::string& seed);
int (*AdhocTest)(int argc, char *argv[]) = NULL;
+namespace { OFB_Mode<AES>::Encryption s_globalRNG; }
RandomNumberGenerator & GlobalRNG()
{
- static OFB_Mode<AES>::Encryption s_globalRNG;
return dynamic_cast<RandomNumberGenerator&>(s_globalRNG);
}
// See misc.h and trap.h for comments and usage
#if CRYPTOPP_DEBUG && (defined(CRYPTOPP_BSD_AVAILABLE) || defined(CRYPTOPP_UNIX_AVAILABLE))
static const SignalHandler<SIGTRAP, false> s_dummyHandler;
-// static const DebugTrapHandle s_dummyHandler;
+// static const DebugTrapHandler s_dummyHandler;
#endif
int CRYPTOPP_API main(int argc, char *argv[])