To ensure the fairness of the lottery, after a user purchases the last ticket (the time of purchasing is T1), the system will automatically locate the first block generated after T1 on the Binance Smart Chain(BSC). Based on the hash value of this block, a winner number will be calculated through the following formula:
⌊Hash ÷ number of reward pool⌋ % total tickets + 1