diff options
author | Andrew Marshall <planetmarshall@users.noreply.github.com> | 2019-07-23 17:39:52 +0100 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-07-23 12:39:51 -0400 |
commit | 12382a14bef384f12b739d096beb556ba04bd199 (patch) | |
tree | c0ea566e169bcfcc99d243953b3ce63b1133ea93 /rng.cpp | |
parent | 614795f3e17202b4637f14e4dbba5b4ecb74a114 (diff) | |
download | cryptopp-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
|