Verify the randomness generation for GODL rounds
The entropy provider pre-commits to a secret seed by publishing keccak(seed). After a specified slot, the slot hash is sampled from Solana's slot history. The final entropy value is computed as:
value = keccak(slot_hash || seed || samples)The round RNG (r) is derived from the entropy value by splitting it into 4×u64 values and XORing them:
r = u64[0] ^ u64[1] ^ u64[2] ^ u64[3]Simple modulo operation to select one of 25 squares:
winning_square = r % 25Determines whether rewards are split among all miners on the winning square or given to a single top miner:
is_split = (reverse_bits(r) split into 4×u16, XOR them) % 2 == 01 in 625 chance to trigger the motherlode payout:
motherlode_hit = reverse_bits(r) % 625 == 0When not in split mode, a weighted random sample selects the top miner proportional to their deployment:
sample = reverse_bits(r) % total_deployed_at_winning_squareThe miner whose cumulative deployment interval contains this sample wins.