From 5c9fa90aa4b3e94b66aba2fe78b358f9ab12f16e Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 May 2007 16:00:58 +0000 Subject: fix warning git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@344 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rng.cpp') diff --git a/rng.cpp b/rng.cpp index fb52a2b..9866cd8 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; -- cgit v1.2.1