diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-09-20 18:43:51 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-09-20 18:43:51 -0400 |
commit | e4498a105ed292ee9efb1adc9e62b55dd0a110a7 (patch) | |
tree | 46259e69fe1af8ce6237846bb842c543ddda3bb2 /test.cpp | |
parent | 4b7549a990f5bdaddb3b76f6caf4e817a02871f1 (diff) | |
download | cryptopp-git-e4498a105ed292ee9efb1adc9e62b55dd0a110a7.tar.gz |
Use ::time() and ::log() instead of std::time() and std::log() (GH #512)
The 35c0fa82fd4c change broke GCC 4.8
Diffstat (limited to 'test.cpp')
-rw-r--r-- | test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -855,12 +855,12 @@ bool Validate(int alg, bool thorough, const char *seedInput) // Some editors have problems with the '\0' character when redirecting output.
// seedInput is argv[3] when issuing 'cryptest.exe v all <seed>'
- std::string seed = (seedInput ? seedInput : IntToString(std::time(NULLPTR)));
+ std::string seed = (seedInput ? seedInput : IntToString(::time(NULLPTR)));
seed.resize(16, ' ');
OFB_Mode<AES>::Encryption& prng = dynamic_cast<OFB_Mode<AES>::Encryption&>(GlobalRNG());
prng.SetKeyWithIV((byte *)seed.data(), 16, (byte *)seed.data());
- g_testBegin = std::time(NULLPTR);
+ g_testBegin = ::time(NULLPTR);
PrintSeedAndThreads(seed);
switch (alg)
@@ -964,7 +964,7 @@ bool Validate(int alg, bool thorough, const char *seedInput) default: return false;
}
- g_testEnd = std::time(NULLPTR);
+ g_testEnd = ::time(NULLPTR);
std::cout << "\nSeed used was " << seed << std::endl;
std::cout << "Test started at " << TimeToString(g_testBegin) << std::endl;
|