summaryrefslogtreecommitdiff
path: root/rng.cpp
diff options
context:
space:
mode:
authorAndrew Marshall <planetmarshall@users.noreply.github.com>2019-07-23 17:39:52 +0100
committerJeffrey Walton <noloader@gmail.com>2019-07-23 12:39:51 -0400
commit12382a14bef384f12b739d096beb556ba04bd199 (patch)
treec0ea566e169bcfcc99d243953b3ce63b1133ea93 /rng.cpp
parent614795f3e17202b4637f14e4dbba5b4ecb74a114 (diff)
downloadcryptopp-git-12382a14bef384f12b739d096beb556ba04bd199.tar.gz
Use fixed size temporary in LC_RNG for consistency across platforms (#867)
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 9432cf37..5056019f 100644
--- a/rng.cpp
+++ b/rng.cpp
@@ -43,7 +43,7 @@ void LC_RNG::GenerateBlock(byte *output, size_t size)
word32 hi = seed/q;
word32 lo = seed%q;
- long test = a*lo - r*hi;
+ sword64 test = a*lo - r*hi;
if (test > 0)
seed = test;