Provably Fair Explained: Server Seed, Client Seed and Nonce

Short answer: a provably fair game lets you check, after the fact, that the casino didn’t change the result of your bet. Before you play, the casino commits to a secret server seed by showing you its hash. You add your own client seed, and a counter called the nonce goes up by one with every bet. When you rotate seeds, the casino reveals the old server seed, and you can recompute every result yourself.

This guide explains each piece in plain English, walks through a verification, and covers the limits of what “provably fair” actually proves.

Disclosure: some links on this page are affiliate links, and we may earn a commission at no cost to you.

Why provably fair exists

At a regular online casino you trust that the random number generator is fair because a regulator or testing lab says so. Crypto casinos added another option. They publish the inputs and the formula behind their in-house games, so players can check the maths themselves.

It’s used most often for simple “originals” such as dice, limbo, crash, mines and plinko. These are usually games the casino built itself, which is why it can publish the full method. Many third-party slots and live dealer tables don’t work this way.

The three ingredients

A locked brass box, a plain gold token, and a small mechanical tally device in a row, representing the server seed, client seed, and nonce in provably fair games.

Different casinos use slightly different formulas, but most follow the same pattern. Stake’s published implementation is a good reference because it documents every input.

1. Server seed (the casino’s secret)

The server seed is a random value the casino generates. Stake describes it as a random 64-character hex string. Before you place any bets, you’re shown only a hash of it, a one-way fingerprint. The casino can’t swap the seed later without the fingerprint changing, and you can’t work out the seed, and so the upcoming results, from the hash.

Think of it as the casino writing the answer on a card and sealing it in an envelope before the game starts.

2. Client seed (your contribution)

The client seed is a value on your side. Stake’s page explains that one is created by your browser when you register, and recommends you choose your own so your input is part of the randomness. It compares this to cutting the deck at a land-based casino.

The client seed is what stops the casino from picking a server seed it knows will produce bad results for you. You set your seed after the casino has already committed to its seed, so it can’t predict the combined outcome.

3. Nonce (the bet counter)

The nonce is a number that goes up by one with every bet you place using the same seed pair. Because it changes each time, every bet produces a different result, even though the seeds stay the same.

A bonus ingredient: the cursor

Some games need more random numbers than a single hash provides. Stake adds a cursor for these. Its implementation uses 4 bytes per game result, and one HMAC_SHA256 output is 32 bytes. Games like blackjack, keno or mines therefore move to extra rounds to get more bytes, while simple games such as dice and limbo use only the first round.

How the result is calculated

Stake’s documentation shows the core step. It runs the cryptographic function HMAC_SHA256, keyed with the server seed, over a message built from the client seed, the nonce and the current round, in the form clientSeed:nonce:round. The output bytes are then turned into the game result: a dice roll, a crash point, a card, and so on.

The important part isn’t the exact maths. It’s that the same inputs always give the same output. Once you know all the inputs, anyone can reproduce the result.

How to verify a bet yourself: step by step

  1. Before you play, write down the hashed server seed shown on the casino’s fairness page, plus your client seed. Don’t rely only on the casino’s screen to remember it for you.
  2. Play your bets. Each one is tied to a nonce: 0 or 1 for the first bet, then counting up.
  3. Rotate your seed pair. At Stake, revealing the server seed requires rotating it, which replaces it with a new one. After rotating, the old, unhashed server seed is shown.
  4. Check the commitment. Hash the revealed server seed using the algorithm the casino names, and confirm it matches the hash you wrote down in step 1. If it doesn’t match, the casino changed the seed.
  5. Recompute a result. Use the casino’s built-in verifier, or better, an independent tool or the casino’s published code. Enter the server seed, client seed and nonce, and confirm the result matches your bet history.
  6. Check the nonces. They should go up by exactly one per bet, with no gaps or repeats.

If you’re comfortable with a terminal, step 4 for a SHA-256 commitment is one line: printf '%s' 'REVEALED_SERVER_SEED' | sha256sum. Compare the output with the hash you saved. Confirm on the casino’s fairness page exactly which hash function and input format it uses before you rely on this check.

What provably fair does not prove

Provably fair is useful, but it’s easy to read too much into it:

  • It doesn’t remove the house edge. A game can be provably fair and still be designed so the casino wins over time. Check the stated return-to-player or house edge for each game.
  • It only covers games that support it. Third-party slots and live tables usually rely on the provider’s own testing and the casino’s licence instead.
  • It doesn’t guarantee withdrawals. Whether a casino pays you on time depends on its terms, verification checks and how well it’s run. See our guides to Dogecoin casino withdrawal time and Bitcoin withdrawals that stay pending.
  • It only helps if you check. If you never save the hash or rotate your seeds, you’re trusting the site like any other.

Does the coin you use matter?

No. Provably fair results are calculated from your seeds and nonce, not from the blockchain. A dice roll funded with Dogecoin uses the same game logic as one funded with Bitcoin. The coin only matters when money moves in and out of the casino, which we cover in Dogecoin vs Bitcoin for gambling.

Casinos that publish fairness information

For our full list of operators with confirmed DOGE support, see best Dogecoin casinos. If you’re new to all of this, start with how to gamble online with Dogecoin.

Frequently asked questions

What does provably fair mean?

It means the casino publishes the inputs and method behind a game result so you can verify it. The casino commits to a hashed server seed before you play, you add a client seed, and after rotation you can recompute each result.

What is a server seed and a client seed?

The server seed is a secret random value generated by the casino and shown to you only as a hash until you rotate it. The client seed is your own value, which you can change, and it is combined with the server seed so the casino cannot pre-select outcomes.

What is the nonce in provably fair games?

The nonce is a counter that increases by one with every bet made with the same seed pair. It makes each bet’s result different while keeping the whole sequence reproducible.

Does provably fair mean I can’t lose?

No. Provably fair only shows that results were not changed after you bet. The games still have a house edge, so the casino is expected to win over time.

Play responsibly

You must be 18 or older, or the higher legal age where you live, to gamble. Only play where online gambling is legal for you. Many crypto casinos do not accept players from the United States, the United Kingdom, and other restricted countries, so do not try to get around those restrictions. Gambling should be entertainment, never a way to make money. If it stops being fun, take a break and seek help from an organisation such as Gamblers Anonymous.