mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Whitespace check-in
This commit is contained in:
parent
7101e9e73a
commit
89424327e5
@ -107,7 +107,9 @@ 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.
|
||||
word32 OldRandomPool::GenerateWord32 (word32 min, word32 max)
|
||||
// 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;
|
||||
const unsigned int maxBits = BitPrecision(range);
|
||||
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user