fix warning

This commit is contained in:
weidai 2007-05-04 16:00:58 +00:00
parent 26c7e0bd0a
commit 56f907ca36

View File

@ -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;