Please update 10000##
Server seed: Each game generates a new server seed and publishes the string after Hash256. Client Seeds: Get the ETH height at the end of the daily ticket purchase deadline, and use Hash after 10 blocks as the client seed.
First, use HMAC_SHA256 to calculate the hash value, which gives us a 64-bit character hex string:
hash = HMAC_SHA256 (clientSeed, serverSeed)
Then, take the 8 characters of hash and convert it to an int32 value. We divide the converted value by the0x100000000, multiply by the number of balls, and the number is the winning position, according to which the corresponding ball is obtained.