test
This commit is contained in:
@@ -396,10 +396,10 @@ uint64_t komodo_seed(int32_t height)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
seed = calc_crc32(0,(void *)&height,sizeof(height));
|
seed = (height << 13) ^ (height << 2);
|
||||||
seed <<= 32;
|
seed <<= 21;
|
||||||
seed |= (height & 0xffffffff);
|
seed |= (height & 0xffffffff);
|
||||||
seed |= calc_crc32(0,(void *)&seed,sizeof(seed));
|
seed ^= (seed << 17) ^ (seed << 1);
|
||||||
}
|
}
|
||||||
return(seed);
|
return(seed);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user