Instant games guide

Provably Fair Dice: How Randomness Is Verified

Provably fair dice lets you check every roll. The casino commits to a secret server seed by showing its SHA-256 hash before you bet. Your client seed is combined with it to produce the roll. Afterwards the server seed is revealed, so you can confirm nothing changed.

Share
Table of Content 10
  1. Server seed and client seed
  2. SHA-256 and the commitment
  3. How the roll is produced
  4. Check a roll on your phone
  5. When to rotate your server seed
  6. Common verification mistakes
  7. What provably fair does not mean
  8. Provably fair dice and South African law
  9. Top mobile casinos in our ranking for South Africa
  10. Provably fair dice: FAQ

Server seed and client seed

Before a round the server generates a server seed and shows you only its hash. You supply a client seed, or the game picks one you can change, and a nonce counts your bets. Because the server committed to its seed before seeing yours, neither side can steer the result alone.

A nonce is the bet counter that keeps each roll different even when both seeds stay the same. Provably fair dice gives every bet its own input: server seed, client seed and nonce 1, then nonce 2, and so on. The nonce is why two rolls made with the same seeds still differ. Players who want the basics of the game first can read how to play dice before checking fairness.

SHA-256 and the commitment

SHA-256 is a one-way function. Anyone can hash a seed, but nobody can work back from the hash to the seed, and changing one character changes the whole hash. When the server reveals its seed after the round, you hash it yourself. If your hash matches the one shown before the bet, the seed was fixed in advance.

The commitment only works if you save the hash before you bet. Provably fair dice relies on that order: hash first, bet second, reveal third. If you only look at the hash after the seed is revealed, you have nothing to compare it with. A screenshot of the fairness panel taken before the first bet is enough. Each hash is tied to one seed, so a new server seed always arrives with a new hash.

How the roll is produced

The game feeds the server seed, client seed and nonce into a fixed algorithm, usually an HMAC-SHA256, and turns the output into a number from 0 to 100. The same inputs give the same roll every time, so you can recompute it with the game's verifier or any independent tool.

The HMAC output is a long string of hexadecimal characters, and the game reads the first few of them as a number. That number is scaled to the 0 to 100 range the game displays. The mapping is public, so any verifier that follows the same steps returns the same roll. The same idea underpins the maths behind crash game algorithms, where a hash is turned into a multiplier instead of a dice number.

Check a roll on your phone

  1. Open the fairness panel Find the seed panel in the game.
  2. Note the details Write down the hashed server seed, your client seed and the nonce.
  3. Rotate the seed After rotating the seed, copy the revealed server seed.
  4. Hash and compare Hash the revealed seed with a SHA-256 tool and compare it with the earlier hash.
  5. Recompute the roll Paste the seeds and nonce into a verifier and confirm the roll.

When to rotate your server seed

Rotating the server seed ends the current seed and publishes it. The casino then shows a new hashed seed for the next series of bets. Every roll made under the old seed can be checked at that point, in one batch. The nonce usually resets to zero when the seed changes. Players who want to audit a long session can rotate once at the end instead of after every bet.

Changing the client seed does not reveal anything. It only changes the input for future rolls. Provably fair dice treats the client seed as your contribution, so a seed you type yourself is as valid as the one the game suggests. Keep a short note of each seed pair and the nonce range it covered, because the game's history may not keep them for ever.

Common verification mistakes

Mismatched hashes usually trace back to copying errors. A trailing space, a missing character or the wrong seed pair is enough to produce a different SHA-256 hash. Verifiers expect the exact string, so paste it rather than retyping it. Check the nonce too, because an off-by-one nonce gives a valid-looking but wrong roll. If the hash of the revealed seed does not match the earlier hash, the seed was changed and the round fails the check.

Verification covers the roll, not the whole product. Provably fair dice says nothing about payout tables, so read the stated multiplier and win chance before judging a game. A game can pass every check and still carry a house edge. For the same checks in another format, see whether Mines games are really provably fair.

What provably fair does not mean

A fair game still has a house edge. Provably fair proves the roll was not manipulated. It does not make the game favourable. The same method is used in Plinko, crash games such as Aviator, Mines and Limbo. For strategies, see dice strategies for beginners.

Provably fair dice and South African law

South Africa's gambling law is the National Gambling Act, 2004, cited as Act No. 7 of 2004. The minimum age for online gambling is 18. A provably fair label is a technical statement about randomness. It is not a licence and not a legal opinion on any operator.

Readers should check the legal position themselves before playing for money, and treat this guide as explanation only. For the wider picture of crypto-native formats, the instant game types guide compares how each one works. National Gambling Board (NGB) maintains the self-exclusion register, and SARGF is the listed helpline.

Top mobile casinos in our ranking for South Africa

  1. AvaBet review
    Bonus
    R 30,000 + 300 FS
    Wagering
    –
    You must wager
    –
    Expected value
    –
    Visit Casino 18+ · T&Cs Apply · Play Responsibly
  2. Roobet review
    Bonus
    –
    Wagering
    –
    You must wager
    –
    Expected value
    –
    Visit Casino 18+ · T&Cs Apply · Play Responsibly
  3. Nomini review
    Bonus
    R 9,000 + 200 FS
    Wagering
    –
    You must wager
    –
    Expected value
    –
    Visit Casino 18+ · T&Cs Apply · Play Responsibly
  4. 1xBet review
    Bonus
    30,000 ZAR + 150 FS
    Wagering
    25x
    You must wager
    R752 160
    Expected value
    +R58
    Visit Casino 18+ · T&Cs Apply · Play Responsibly
  5. Betwinner review
    Bonus
    30,917 ZAR + 150 FS
    Wagering
    35x
    You must wager
    R1 082 095
    Expected value
    −R12 367
    Visit Casino 18+ · T&Cs Apply · Play Responsibly

Provably fair dice: FAQ

What is a provably fair dice game?

A dice game where every roll can be checked with the seeds and hash the casino publishes.

Can I verify every roll?

Yes, once the server seed is revealed, usually when you rotate it.

Is provably fair only used in dice?

No. Crash, Plinko, Mines, Limbo and many other instant games use it too.

Does provably fair mean I will win?

No. It proves the result was not changed, and the house edge still applies.

Why change my client seed?

It is optional. Changing it shows that the server could not have planned results around your seed.

What is a nonce in provably fair dice?

A nonce is a counter that goes up with each bet. It is part of the input to the roll, so the same server seed and client seed give a different result on every bet.

Do I need to rotate the server seed to verify a roll?

Yes. The server seed stays secret until it is rotated. After rotation the casino reveals it, and you can hash it and recompute every roll made under it.

What if the hash does not match?

Check for copying errors first, such as extra spaces or the wrong seed pair. If the revealed seed still does not hash to the value shown before your bets, that round has failed verification. Stop playing and contact the casino's support.

Does provably fair mean a casino is legal in South Africa?

No. Provably fair describes how results are generated. South Africa's gambling law is the National Gambling Act, 2004, and the minimum age for online gambling is 18. Check the legal position before you play.