Use fixed size temporary in LC_RNG for consistency across platforms (#867)

pull/870/head
Andrew Marshall 2019-07-23 17:39:52 +01:00 committed by Jeffrey Walton
parent 614795f3e1
commit 12382a14be
1 changed files with 1 additions and 1 deletions

View File

@ -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;