From 12382a14bef384f12b739d096beb556ba04bd199 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Tue, 23 Jul 2019 17:39:52 +0100 Subject: [PATCH] Use fixed size temporary in LC_RNG for consistency across platforms (#867) --- rng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;