Dice uses a Provably Fair system that makes every result transparent, independently verifiable, and fixed after a bet has been placed.
Each Dice result is generated using three elements: a server seed, a client seed, and an incremental nonce. Before you place a bet, the server seed is shown as a hash. After the seed is revealed, you can check that it matches the hash shown earlier.
The result is calculated using HMAC-SHA256:
hmac = HMAC_SHA256(serverSeed, clientSeed:nonce:0)
The first four bytes are read as an unsigned number and converted to a value between 0 and 1:
float = uint32BE(hmac[0..3]) / 2^32
That value determines the Dice result:
roll = floor(float * 10001) / 100
The result is a number from 0.00 up to 100.00, in steps of 0.01.
After the server seed is revealed, you can verify previous Dice results using the Verify tab. Rotating the server seed creates a new seed pair for future rounds while keeping previous results available for verification.
This lets you check that each Dice result matches the seeds, nonce, and game formula.
