This commit is contained in:
jl777
2016-12-01 17:32:28 -03:00
parent 39b462c729
commit 93fb251c56

View File

@@ -396,10 +396,10 @@ uint64_t komodo_seed(int32_t height)
}
else
{
seed = calc_crc32(0,(void *)&height,sizeof(height));
seed <<= 32;
seed = (height << 13) ^ (height << 2);
seed <<= 21;
seed |= (height & 0xffffffff);
seed |= calc_crc32(0,(void *)&seed,sizeof(seed));
seed ^= (seed << 17) ^ (seed << 1);
}
return(seed);
}