Wild.io
Provably Fair & Casino Trust
Course contents
How Provably Fair WorksBeginner3 min read

Seeds, Nonces, and Hashes

Server seed, client seed, and nonce: the three ingredients behind every provably fair result, and how one SHA-256 hash locks the casino in before you bet.

Every provably fair result comes from three ingredients. The server seed is the casino's secret number, and the client seed is yours, usually editable. The nonce is a counter that rises by one with each bet. Mix them through a hash function and out comes your roll, card, or crash point.

None of the three is scary once you see the job it does. The server seed provides randomness the casino controls. The client seed provides randomness you control. The nonce keeps every bet distinct. And the hash function is the blender that turns those inputs into one unpredictable, repeatable output.

Hashes: one-way fingerprints

A hash function like SHA-256 takes any input, a word, a number, a whole book, and returns a fixed-length string of letters and digits. The same input always produces the same output. But the function only runs one way: given the output, you can't work backward to the input. And the output is chaotic, so changing a single character produces a completely different fingerprint. Hash the word 'dice' and you get one string; hash 'Dice' and you get something unrecognizably different.

Those two properties do all the work in provably fair. One-way means publishing the server seed's hash gives nothing away: you can see the fingerprint without learning the secret. Deterministic means that once the seed is revealed, anyone can re-run the hash and confirm the fingerprint matches. Commitment first, verification later.

What each ingredient does

  • Server seed: the casino's secret random string. You see its hash before betting, and the seed itself only after it's retired.
  • Client seed: your contribution. Because you can set it after seeing the server seed's hash, the casino can't pre-pick results that favor the house.
  • Nonce: a bet counter (0, 1, 2, and so on) so every bet under the same seed pair produces a unique result without new seeds each round.
  • Hash: the published fingerprint that locks the server seed in place before you play a single round.

Notice the asymmetry in when things go public. The client seed and nonce are visible the whole time; you can screenshot them mid-session. The server seed stays hidden until rotation, because revealing it early would let you compute upcoming results and bet only on winners. Hiding it while you play, and proving it afterward, is the entire design.

One seed pair, step by step

Follow one full cycle. The casino generates server seed S and publishes its hash, H(S). You set your client seed to 'lucky-42'. Your first bet uses S, 'lucky-42', and nonce 0. Your second bet uses the same seeds with nonce 1, the third nonce 2, and so on. Two hundred bets later you rotate seeds. The site reveals S, you hash it yourself, and you confirm the output equals the H(S) you saw before bet one. Every result in between is now checkable.

Why bother with the nonce? Without it, every bet under the same seed pair would produce an identical result, which would make the game pointless after round one. The counter changes the input slightly each time, and because hashes are chaotic, a nonce of 7 gives a wildly different outcome than a nonce of 8. Same ingredients, fresh outcome, every single round.

Two mistakes come up constantly. First, players leave the default client seed untouched, which weakens the guarantee: setting your own seed after seeing the hash is what proves the casino committed blind. Change it to anything, your cat's name works fine. Second, players assume a revealed seed means past results were fair without checking. The reveal enables verification; it isn't verification. Until you re-hash and compare, you've proven nothing. Five minutes with a hash tool closes that gap, and the next lesson walks through the whole check step by step.

Frequently asked questions

Should I change the default client seed at a provably fair casino?

Yes. Leaving the default client seed untouched weakens the fairness guarantee. Setting your own seed after you have seen the server seed's hash is what proves the casino committed to its secret blind, without being able to pre-pick results that favor the house. The value itself doesn't matter — any string works, even your cat's name.

Why does a provably fair casino hide the server seed while you play?

If the server seed were revealed early, you could compute every upcoming result and bet only on winners. So the casino publishes only the seed's hash before play, which locks the secret in place without exposing it, and reveals the actual seed after it is retired. Hiding it during play and proving it afterward is the entire design.

What does the nonce do in provably fair betting?

The nonce is a bet counter that rises by one with each wager — 0, 1, 2, and so on. Without it, every bet under the same server and client seed pair would produce an identical result. Because hash functions are chaotic, even a tiny change like nonce 7 versus nonce 8 gives a wildly different outcome, so each round stays unique without needing new seeds.

Does a revealed server seed prove my past bets were fair?

No. The reveal only enables verification — it is not verification itself. Until you hash the revealed server seed yourself and confirm the output matches the fingerprint the casino published before your first bet, you have proven nothing. Checking takes about five minutes with a hash tool, and only that comparison confirms the past results were fair.

How can I tell if a casino's provably fair badge actually means anything?

Check whether the site lets you rotate seeds and see the retired server seed afterward. The reveal is the whole test: if you can never obtain the old server seed to re-hash and compare against the published fingerprint, you cannot verify anything, and the badge is decoration. Seed rotation should be a visible button in the interface, not something requiring a support ticket.

Why is publishing the server seed's hash safe for the casino?

Hash functions like SHA-256 only run one way: given the output fingerprint, you cannot work backward to the input. So publishing the hash gives players nothing they could use to predict results. At the same time, hashing is deterministic — the same input always yields the same output — so once the seed is revealed, anyone can re-run the hash and confirm the commitment.

Finished this lesson?

Mark it complete to track your progress.

Related guides