summaryrefslogtreecommitdiff
path: root/rng.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 16:00:58 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 16:00:58 +0000
commit5c9fa90aa4b3e94b66aba2fe78b358f9ab12f16e (patch)
tree75793999e3f57d6dfb731b0d3a241a553f1153ad /rng.cpp
parent991680f3e33206cd70514c85f3a0cb40a964a7b5 (diff)
downloadcryptopp-5c9fa90aa4b3e94b66aba2fe78b358f9ab12f16e.tar.gz
fix warning
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@344 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'rng.cpp')
-rw-r--r--rng.cpp2
1 files changed, 1 insertions, 1 deletions
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;