Clear C4456 under MSVC

pull/737/head
Jeffrey Walton 2018-11-08 21:31:25 -05:00
parent dede7bf6b4
commit e6112e35df
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 6 additions and 6 deletions

View File

@ -457,13 +457,13 @@ bool Test_RandomNumberGenerator(RandomNumberGenerator& prng, bool drain=false)
try try
{ {
word32 result = prng.GenerateWord32(); word32 val = prng.GenerateWord32();
result = prng.GenerateWord32((result & 0xff), 0xffffffff - (result & 0xff)); val = prng.GenerateWord32((val & 0xff), 0xffffffff - (val & 0xff));
prng.GenerateBlock(reinterpret_cast<byte*>(&result), 4); prng.GenerateBlock(reinterpret_cast<byte*>(&val), 4);
prng.GenerateBlock(reinterpret_cast<byte*>(&result), 3); prng.GenerateBlock(reinterpret_cast<byte*>(&val), 3);
prng.GenerateBlock(reinterpret_cast<byte*>(&result), 2); prng.GenerateBlock(reinterpret_cast<byte*>(&val), 2);
prng.GenerateBlock(reinterpret_cast<byte*>(&result), 1); prng.GenerateBlock(reinterpret_cast<byte*>(&val), 1);
} }
catch (const Exception&) catch (const Exception&)
{ {