18+ Gamble responsibly. Get help
Free tools: Simulator · Verifier · Calculator
Dice Glossary

Server Seed

A server seed is the casino's secret random string, typically 64 hexadecimal characters, that drives every provably fair dice roll. The site commits to it by publishing its SHA-256 hash before you bet, keeps the seed itself hidden while it is active, and reveals it when you rotate seeds so past rolls can be verified.

Server Seed at a Glance
Term type Provably fair component (the house secret)
Typical format 64 hex characters (256 bits of entropy)
Shown as SHA-256 hash while active, plain text after rotation
Role in a roll HMAC key: HMAC-SHA256(server seed, client seed:nonce)
Hidden because Knowing it would let players predict every roll
Revealed when You rotate to a fresh seed pair
Paired with Your client seed plus an incrementing nonce

What is a server seed in dice gambling?

The server seed is the house half of the randomness behind provably fair dice. Generated by the casino as a long random string, it acts as the secret key that, combined with your client seed and nonce, deterministically produces each roll.

Every provably fair roll is computed from three inputs: the server seed, your client seed, and the nonce. The server seed is the only input you cannot see during play, and it carries the bulk of the entropy, usually 256 bits generated by a cryptographic random number generator.

Because the roll function is deterministic, the moment a seed pair is locked, every future roll in that pair already exists mathematically. The server seed is what makes those rolls unpredictable to you; the hash commitment is what makes them unchangeable by the house.

How does the hash commitment work?

Before you place a bet, the site shows you SHA-256(server seed), a fingerprint that is practically impossible to reverse or collide. The casino cannot later substitute a different seed, because any substitute would produce a different hash.

SHA-256 is a one-way function: easy to compute forward, computationally infeasible to invert. Publishing the hash therefore reveals nothing useful about the seed while pinning the casino to it. Finding a second seed with the same hash (a collision) would require on the order of 2^128 attempts, far beyond any realistic computing power.

A worked shape of the flow: the site generates seed a7f3...c91b, shows you its hash 4be2...77d0, and you record that hash. Weeks later, after rotation, the site reveals a7f3...c91b. You hash it yourself; if the output is not exactly 4be2...77d0, the site swapped seeds and you have proof. This commit-then-reveal structure is the backbone of the whole provably fair scheme.

Why does the server seed stay hidden during play?

Rolls are deterministic once the seeds and nonce are known. If you could see the active server seed, you could compute the next roll before betting and only wager on guaranteed winners, bankrupting the game instantly.

The hidden seed is not a trust compromise; it is what keeps the game a game. With the server seed in hand, anyone could evaluate HMAC-SHA256(server seed, client seed:nonce) for the upcoming nonce and know the result in advance. Secrecy during play and provability afterward are the two halves of the design.

This is also why you should treat a site that ever displays an unhashed active seed, or reuses a revealed seed, as broken. Once revealed, a seed is burned: honest sites generate a fresh one and show you the new hash immediately. When you audit past bets, do it on retired seeds with our provably fair dice verifier.

What happens when you rotate the server seed?

Rotation retires the current seed pair, reveals the old server seed in plain text, resets the nonce to zero, and commits to a new hashed seed. Rotate whenever you want to verify recent play, ideally at the end of each session.

Rotation is player-triggered in the fairness settings of any legitimate dice site. The sequence: the active server seed is unsealed, a new seed is generated and its hash displayed, your nonce counter restarts at 0, and your bet history now shows the revealed seed against the rolls it produced.

Two checks follow every rotation: hash the revealed seed against the original commitment, then recompute a sample of rolls. A common mistake is never rotating at all, which leaves every bet unverifiable in practice since the active seed stays sealed. Verification discipline is a good filter when choosing where to play; the best bitcoin dice sites make rotation and old-seed lookup a one-click affair.

Frequently Asked Questions

Can the casino change the server seed mid-session? +
Not without detection. The seed is pinned by the SHA-256 hash you saw before betting. Any substitute seed hashes to a different value, so the reveal would expose the swap immediately.
Can I see the server seed before betting? +
No, only its hash. Revealing the active seed would let players compute upcoming rolls and bet only on winners. It becomes visible when you rotate to a new seed pair.
How often should I rotate my server seed? +
Rotate at the end of any session you want to audit, or after any suspicious streak. Rotation costs nothing, restarts the nonce at zero, and is the only way to unlock the seed for verification.
What if a site never reveals old server seeds? +
Then it is not provably fair, whatever its marketing says. The reveal step is mandatory: without the plain-text seed you cannot check the hash or recompute a single roll. Play elsewhere.

Ready to compare dice sites?

We tested the leading bitcoin dice casinos hands-on: deposits, real rolls, withdrawals, and support. See how they rank.

See the Best BTC Dice Sites
See the Best BTC Dice Sites →