From 52e039e2e0d7b18ba059be738a356a5db16d9cd3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 22 Mar 2019 01:24:49 -1100 Subject: [PATCH] More dynamic range --- src/cc/gamescc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/gamescc.cpp b/src/cc/gamescc.cpp index 6efe19da6..335a72446 100644 --- a/src/cc/gamescc.cpp +++ b/src/cc/gamescc.cpp @@ -69,7 +69,7 @@ UniValue games_rng(uint64_t txfee,struct CCcontract_info *cp,cJSON *params) for (i=0; i<8; i++) { if ( ((1 << i) & playerid) != 0 ) - seed ^= hash.uints[i]; + seed ^= (uint64_t)hash.uints[i] << ((i&1)*32); } } initseed = seed;