From 56f907ca360a99ecc225e0326cf4288b601923df Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 May 2007 16:00:58 +0000 Subject: [PATCH] fix warning --- rng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rng.cpp b/rng.cpp index fb52a2bb..9866cd83 100644 --- a/rng.cpp +++ b/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;