Server seed, client seed and nonce: what each input does

Server seed, client seed and nonce in provably fair games: what each input does, why your client seed matters, and what changes when you rotate seeds.

Updated October 15, 2026

Contents
  1. What is the server seed, and why is it hidden?
  2. Why does the client seed matter if the server already committed?
  3. What does the nonce do?
  4. What happens when you change your client seed?
  5. What should you use as a client seed?
  6. How does seed rotation work?

Try the scheme

Example round · Dice

Published hash

The SHA-256 fingerprint the game showed before you played. Without it the tool can calculate the result but cannot check the commitment.

Result the game showed

Optional. Paste the result from the round history to compare it with the calculated one.

Calculated result · Dice roll

42.17

  • Commitment matches the published hash
  • No game result entered to compare

How this result was derived
  1. 1

    Commitment, before the round

    SHA-256(server seed) = f51376a5a542e19876a861e25e058cc522a304cd3edbd012bad096d8cc543de0
  2. 2

    HMAC-SHA256 of player-17:1:0

    6bf446d5eea533d95c787f63c2ac5b6943a7f7dcf4dc68f9edf3569f0c50953f
  3. 3

    Bytes to a number in [0, 1)

    0.4216961164
  4. 4

    floor(x × 10,001) ÷ 100, a roll from 0.00 to 100.00

    42.17

This tool reproduces one documented reference scheme. Platforms that build the message, read the bytes or map the number differently will give other results with the same seeds. See the scheme.

256 bits
Length of the example server seed
17.52
Roll after capitalizing one letter of the client seed
97.15
Roll at nonce 2 with the same seed pair

Our example round rolls 42.17 with the client seed player-17 at nonce 1. Change the client seed to player-18, keep everything else, and the same server seed rolls 30.54. Capitalize it to Player-17 and the roll is 17.52. Three inputs decide every provably fair result, and this page, part of our guide to how provably fair works, is about what each one is for, why one of them belongs to you, and what actually happens when you change it.

The short version: the server seed is the game's secret, the client seed is your contribution, and the nonce numbers your bets. The commitment ties the first one down before you play. The other two make sure the game could not have chosen its secret with your bets in mind.

What is the server seed, and why is it hidden?

The server seed is a random value the game generates for a run of bets. In the reference scheme on this site it is 64 hexadecimal characters, or 256 bits, such as a411321fbc84884ec3c90c0c4961d2667a34fb71de166237b161007cf2f7fd78. During play it is the HMAC key, the secret ingredient in every result.

You never see the active server seed. If you did, you could compute your next result before betting, and the game would be pointless. What you see instead is its SHA-256 hash, the commitment, which fixes the seed without revealing it. For our example seed that hash is f51376a5a542e19876a861e25e058cc522a304cd3edbd012bad096d8cc543de0.

Two properties make this work. The hash cannot be reversed to get the seed back, so showing it gives nothing away. And no one can find a second seed with the same hash, so the game cannot switch seeds later without the switch showing. The length of the seed matters for the first property: a 256-bit random seed cannot be found by guessing, while a short or predictable one could be, by hashing candidates until one matches the commitment. The commit and reveal page covers this side of the scheme in detail.

Why does the client seed matter if the server already committed?

This is the part people most often skip, and it is the reason the client seed exists at all.

Imagine a version of the game with no client seed, where results come from the server seed and the nonce alone. The game could generate a million candidate seeds, compute the first hundred results for each, and quietly keep the one where those results are worst for players. Then it would publish that seed's hash. The commitment would still be honest in a narrow sense, since the seed never changed, and every round would verify. The game would have cheated anyway, before the first bet.

The client seed breaks that strategy. The server has to commit to its seed before it knows which client seed you will use. Since your client seed changes every result, the server cannot predict what any seed will produce for you, so trying seeds in advance gets it nowhere. Your input does not need to be clever or secret. It only needs to be set, or changeable, after the commitment.

That is also why the protection depends on the game letting you change the client seed. A game that fixes it for you, or sets it before showing the hash, gives you a verifiable sequence but not this guarantee.

What does the nonce do?

The nonce is a bet counter. Under one server seed and client seed, the first bet uses one nonce value, the next uses the following one, and so on. In the reference scheme it goes into the HMAC message along with your client seed: player-17:1:0 for the first bet in our example, player-17:2:0 for the second.

Without it, every bet under the same seed pair would produce the same result. With it, each bet gets a fresh message and an unrelated output. Here is what the first three nonces give with player-17:

Nonce HMAC message Dice Hi-Lo card
1 player-17:1:0 42.17 9 of hearts
2 player-17:2:0 97.15 Queen of clubs
3 player-17:3:0 55.88 4 of diamonds

The nonce also gives you a way to find a specific bet later. When you check a round, the nonce from your bet history tells you which message to rebuild. If you use the wrong one, you get a valid but unrelated result, which is easy to mistake for a problem with the game. Platforms differ on whether the count starts at 0 or 1, so check which one yours uses. The full byte-by-byte walk is in the provably fair algorithm, step by step.

What happens when you change your client seed?

Mathematically, the results from that point on change completely. The table below uses the same server seed and nonce 1 with three client seeds:

Client seed Dice Crash Limbo
player-17 42.17 1.71× 2.34×
player-18 30.54 1.42× 3.24×
Player-17 17.52 1.20× 5.64×

None of these is better or worse on average. Each client seed produces a sequence that is just as random as any other, so there is no lucky seed to search for, and a long losing run is no reason to think a new seed will turn it around. Changing the client seed changes which results you get, never how likely they are. The page on the gambler's fallacy explains why the urge to switch after a bad run is so persistent.

How a platform handles the change is a bookkeeping choice. The reference math works with any client seed against the same committed server seed. A game may treat a new client seed as the start of a new seed pair, revealing the old server seed and starting the nonce over, or it may let you swap the client seed while the server seed stays in use. Look at your game's fairness panel to see which it does.

What should you use as a client seed?

Anything you like, within the platform's length limits. The scheme only needs the value to come from you, or at least to be changeable by you, after the server has committed. A pet's name works as well as a 64-character random string, because the randomness in the result comes from the server seed and the HMAC, not from your input.

Two practical points still apply. First, the client seed is stored by the game and may show up in your bet history next to each round, so do not use anything personal, such as a password or an email address. Second, write it down exactly. Since player-17 and Player-17 give different results, a client seed you only half remember is a round you cannot check. If the game filled in a random client seed for you, copy it before you play, the same way you copy the hashed server seed.

How does seed rotation work?

Rotation ends one seed pair and starts the next. The game reveals the old server seed, shows you the hash of a new one, and the nonce returns to its starting value. From that moment, every bet you placed under the old pair can be checked.

Rotation is the only point at which you can verify anything. Before it, you have a hash and a list of results but no key to connect them. After it, you have everything: hash the revealed seed, compare it with the commitment you saved, and recompute any round with the calculator. If you never rotate, you never verify, and the provably fair label on the game stays a promise you have not tested.

Copy the hashed server seed before your first bet with a new pair, or take a screenshot of it. A revealed seed proves little if the only record of the original commitment is on the same screen that just revealed it.

FAQ

01

What is a server seed?

It is the game's secret random value for a run of bets. You see only its SHA-256 hash while it is in use, and the seed itself is revealed after you rotate, so you can check the rounds it produced.
02

What is a client seed?

It is an input you control, often filled in with a random value that you can replace with any text. Because the server commits to its seed before it knows your client seed, it cannot tune its seed against your bets.
03

What is a nonce in provably fair games?

It is a counter that goes up by one with every bet under the same seed pair. It makes each round's input different, so the same two seeds can produce a long series of separate results.
04

Does changing my client seed change my odds?

No. Any client seed gives results that are equally random, so there is no lucky value. Changing it only changes which results you get, not how likely any result is.
05

When should I rotate my seeds?

Rotate when you want to check rounds you have already played, since that is when the old server seed is revealed. Some players also rotate after a session out of habit, which costs nothing.
06

Why does the nonce sometimes start at 0 and sometimes at 1?

It is a platform choice. The reference scheme on this site starts the example at nonce 1, while other platforms count from 0, and your check has to use the same starting point as the game.
07

Can the game see my client seed before I bet?

Yes, the server needs it to compute the result. What matters is timing: the server's own seed was already committed by hash before your client seed was set, so seeing your client seed later gives it nothing to change.
08

What happens if two players use the same client seed?

Nothing harmful. Each player has their own server seed in a per-player scheme, so the HMAC inputs still differ and so do the results.
09

Can I verify a round if I lost the hashed server seed?

You can still recompute the result from the revealed seed, but you lose the proof that the seed was fixed in advance. Save the hash, or a screenshot of it, before you play. Our calculator takes the hash as an optional field for that reason.