EN ▾

How Provably Fair Works - Seeds, Hashes and Nonce

Updated: · Crypto Slots Atlas - Editorial team

A provably fair game fixes the result before you bet: the casino shows the SHA-256 hash of its secret server seed, you set a client seed, and each bet uses a nonce that counts up. The outcome is an HMAC of those inputs. After you change seeds, the old server seed is revealed so you can recompute every bet.

The idea is a commitment. If the casino published the server seed itself, you could predict every result. If it published nothing, it could change results after seeing your bet. The hash sits in the middle: it is a fingerprint that identifies the seed without revealing it.

The three inputs

InputWho controls itWhat it does
Server seedCasino (secret until rotated)Random string; its SHA-256 hash is shown to you before you bet
Client seedYou (editable)Random string you can change, so the casino cannot know the full input in advance
NonceCounterStarts at 0 and rises by 1 with each bet on the same seed pair

A worked example you can reproduce

This is an illustrative scheme, not any casino's real formula: casinos document their own. We chose a server seed of example-server-seed-2026 and a client seed of example-client-seed.

  1. Before the first bet, the casino shows the hash of the server seed:
    604b92d0308cd2e1354e4acf170645989a2590350ff12afa781110cd44e26c4b
  2. Bet 0 uses HMAC-SHA256 with the server seed as key and the message example-client-seed:0. The result is 7009396ed90c9fcb175f689922c57cf7...
  3. Take the first 8 hex digits (4 bytes), which is the integer 1,879,652,718, and divide by 232 = 4,294,967,296 to get 0.437641. Multiply by 100 for a dice-style roll of 43.76.
  4. Bet 1 uses example-client-seed:1 and gives 29.58; bet 2 gives 47.07.

Change the client seed or the nonce by one character and the outputs change completely. That is why the casino cannot tune results to your bet size.

Why the hash proves anything

SHA-256 is one-way: you cannot get the seed from the hash, but anyone can hash a revealed seed and compare. If the hash of the revealed seed equals the hash shown earlier, the casino used that seed for all bets in between. The nonce makes each bet unique, so the same seeds produce a different roll every time.

What provably fair does not prove

  • The payout table. A fair roll can still pay below the fair multiplier. See dice explained.
  • The house edge in advertising. Check the stated RTP, for example a 99% banner means a 1% edge.
  • Withdrawals and bonus terms. These are separate from the game fairness.
  • Other players' seeds in crash. Some crash games mix in player seeds, described in the crash algorithm guide.

Where to play provably fair games with crypto

Game lobbies differ by casino and by country, so search the lobby for the exact title before you deposit and check the game info panel for the RTP your casino runs. Our rated casinos, in the current order:

  1. 1
    9.6
    Cashback twice a week + rakeback every 30 min
    Review
  2. 2
    9.4
    +20% rakeback boost for the first 72 hours (0x wagering)
    Review
  3. 3
    9.2
    100% rakeback on your first $1,000 wagered (0% house edge)
    Review
  4. 4
    9.0
    250% up to 5,000 USDT over 3 deposits
    Review
  5. 5
    8.8
    No deposit match: instant rakeback, races and VIP status match
    Review
  6. 6
    8.6
    No deposit match: instant rakeback, weekly and monthly bonuses (0x wagering)
    Review
  7. 7
    8.4
    Up to 1 BTC welcome bonus (40x wagering) + 10% weekly cashback
    Review
  8. 8
    8.2
    Up to 1 BTC welcome bonus (66x wagering) + 10% weekly cashback
    Review

Next: verify a real bet and the provably fair hub. 18+ only.

FAQ

What is a nonce in provably fair?

A counter that starts at 0 and increases by 1 with each bet on the same server and client seed pair.

Can the casino change the result after I bet?

Not without breaking the hash commitment. The result follows from seeds fixed before the bet, which you can check later.

Should I change my client seed?

You can. It stops anyone relying on a seed you did not choose. Change it before you bet, not in the middle of a session you want to audit.

Is the example in this guide a real casino formula?

No. It is an illustrative scheme with real SHA-256 and HMAC values. Each casino publishes its own formula.

Related pages