summaryrefslogtreecommitdiff
path: root/rng.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-05-04 16:00:58 +0000
committerweidai <weidai11@users.noreply.github.com>2007-05-04 16:00:58 +0000
commit56f907ca360a99ecc225e0326cf4288b601923df (patch)
tree75793999e3f57d6dfb731b0d3a241a553f1153ad /rng.cpp
parent26c7e0bd0ad84cf794fd4403393a0b4843ada821 (diff)
downloadcryptopp-git-56f907ca360a99ecc225e0326cf4288b601923df.tar.gz
fix warning
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 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;