mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-09 22:52:36 +00:00
Add test suite RandomNumberGenerator t anonymous namespace
This commit is contained in:
parent
acf281fef6
commit
145a83e4cd
4
test.cpp
4
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[])
|
||||
|
Loading…
x
Reference in New Issue
Block a user