mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +00:00
fix warning
This commit is contained in:
parent
26c7e0bd0a
commit
56f907ca36
2
rng.cpp
2
rng.cpp
@ -108,7 +108,7 @@ void X917RNG::GenerateIntoBufferedTransformation(BufferedTransformation &target,
|
||||
throw SelfTestFailure("X917RNG: Continuous random number generator test failed.");
|
||||
|
||||
// output random bytes
|
||||
size_t len = UnsignedMin(size, S);
|
||||
size_t len = UnsignedMin(S, size);
|
||||
target.ChannelPut(channel, randseed, len);
|
||||
size -= len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user