Whitespace check-in

This commit is contained in:
Jeffrey Walton 2021-06-17 17:23:18 -04:00
parent 7101e9e73a
commit 89424327e5
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -107,6 +107,8 @@ void OldRandomPool::IncorporateEntropy(const byte *input, size_t length)
// Endian swapped on little-endian machines. This is different
// behavior from Crypto++ 5.4. Provide an override to correct it.
// ConditionalByteReverse performs the correction on full words.
// I am not sure this will affect a ranged word.
word32 OldRandomPool::GenerateWord32 (word32 min, word32 max)
{
const word32 range = max-min;
@ -117,7 +119,6 @@ word32 OldRandomPool::GenerateWord32 (word32 min, word32 max)
do
{
GenerateBlock((byte *)&value, sizeof(value));
// This is new
value = ConditionalByteReverse(BIG_ENDIAN_ORDER, value);
value = Crop(value, maxBits);
} while (value > range);