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
Try the scheme
Example round · DiceCalculated result · Dice roll
42.17
- Commitment matches the published hash
- No game result entered to compare
A mismatch has three usual causes: a copy error, a platform that hashes or maps the seed differently from this reference scheme, or a seed that was not the committed one. What to do when a check fails.
How this result was derived
- 1
Commitment, before the round
SHA-256(server seed) = f51376a5a542e19876a861e25e058cc522a304cd3edbd012bad096d8cc543de0 - 2
HMAC-SHA256 of
player-17:1:06bf446d5eea533d95c787f63c2ac5b6943a7f7dcf4dc68f9edf3569f0c50953f - 3
Bytes to a number in [0, 1)
0.4216961164 - 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:
Swipe the table
| 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:
Swipe the table
| 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.
Sources
References behind this guide.
3 references
Keep reading
- How it works Provably Fair Algorithm Explained Step by Step How a provably fair system turns seeds into results: the provably fair algorithm explained step by step, from SHA-256 to HMAC-SHA256 to one real roll. Read guide
- How it works Commit-Reveal How the commit-reveal scheme behind provably fair games works: the sealed-envelope idea, publishing the seed hash first, rotation, reveal and hash chains. Read guide
- Verify Provably Fair Calculator and Checker A provably fair calculator and checker: test the server seed hash and reproduce dice, crash, roulette, plinko and more to verify a round in your browser. Open tool