diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2016-10-10 18:03:31 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2016-10-10 18:03:31 -0400 |
| commit | 145a83e4cd12871f573920acee8184346f7dcd74 (patch) | |
| tree | 3d7ee6c93894bdc2ffdcc60ae1270e6a6d31ecbe /test.cpp | |
| parent | acf281fef619c725b5b1847874cdb2b52e3791f5 (diff) | |
| download | cryptopp-git-145a83e4cd12871f573920acee8184346f7dcd74.tar.gz | |
Add test suite RandomNumberGenerator t anonymous namespace
Diffstat (limited to 'test.cpp')
| -rw-r--r-- | test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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[])
|
