Browse Source

More dynamic range

pull/4/head
jl777 5 years ago
parent
commit
52e039e2e0
  1. 2
      src/cc/gamescc.cpp

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

Loading…
Cancel
Save