Provably Fair Explained: How to Verify a Dice, Crash or Mines Bet
Provably fair is the one part of a crypto casino's honesty you can check yourself. Here's how server seeds, client seeds and nonces become a dice roll, a Mines board or a crash point, and what a passed check doesn't prove.
Cet article est disponible en anglais.
Every casino in our database puts a provably fair label on its in-house games, usually as a small shield icon or a Fairness link under the bet button. Very few players ever click it. That's a pity, because it's the one part of a crypto casino's honesty you can audit yourself, with free tools, without taking anybody's word for anything.
Your first verification will take maybe fifteen minutes. After that it's a couple of minutes per bet. Below I go through the moving parts (server seed, client seed, nonce, HMAC-SHA256), show how a hash becomes a dice roll, a Limbo multiplier or a Mines board, and then work through a real example you can reproduce at home. The last part covers what the marketing pages skip: the long list of things a passed check does not prove.
The server seed hash is a sealed envelope the casino hands you before you bet
Every provably fair system starts with a server seed, a long random string the casino generates (usually 64 hexadecimal characters). The casino doesn't show you the seed. It shows you its SHA-256 hash.
SHA-256 is a one-way function. Any input produces a fixed 64-character output, and two properties make it useful here: you can't work backward from the hash to the seed, and changing a single character of the seed produces a completely different hash. So by publishing the hash before you play, the casino locks itself into one specific server seed without revealing it. When you later rotate seeds, the casino discloses the original. You hash it yourself, and if the result matches what you were shown at the start, the casino didn't swap seeds halfway through your session.
That commitment is the whole trick. Everything else is plumbing.
Your client seed and the nonce stop the casino from picking your results
If the casino controlled every input, it could generate thousands of server seeds offline, find one that produces a nasty losing run for your next fifty bets, and commit to that one. The hash would still match at the end. The client seed is what prevents that.
The client seed is a string you control. Most sites fill in a random one automatically, and you can replace it with anything you like: a word, a date, a line of keyboard mash. Because the casino commits to its server seed before you set your client seed, it can't know which combination it will face, so it can't pre-select a server seed that hurts you.
Here's the catch most explainers skip. If you never touch the default client seed, the casino generated both inputs. A reputable site won't abuse that, but the guarantee only becomes airtight once you type your own client seed after the new hashed server seed is displayed. It takes five seconds.
The nonce is a simple counter. It starts at 0 or 1, depending on the site, and goes up by one with every bet placed on the current seed pair. Without it, the same two seeds would produce the same result forever. With it, bet 1, bet 2 and bet 347 each get a different outcome, all of them fixed in advance. The nonce also lets you confirm the site isn't skipping results. If your bet history jumps from nonce 41 to nonce 43, you're entitled to ask what happened to 42.
How HMAC-SHA256 turns three inputs into a roll
The most common modern implementation, the one Stake documents on its fairness pages and many newer casinos copied, runs everything through HMAC-SHA256. HMAC is a keyed hash: you give it a key and a message, and it returns 256 bits of output (32 bytes, usually written as 64 hex characters).
- Key: the server seed.
- Message: your client seed, the nonce and a cursor, joined with colons, for example yourseed:5:0.
- Output: 32 bytes that neither you nor the casino could have predicted alone.
The cursor (some sites call it the round) starts at 0. Each float uses four bytes, so one HMAC output yields eight floats. A dice roll needs one. A Mines board can need up to 24, so the site runs a second HMAC with the cursor set to 1, a third with 2, and so on.
From four bytes to a number between 0 and 1
Take the first four bytes of the output, each a value from 0 to 255. Divide the first by 256, the second by 65,536 (256 squared), the third by 16,777,216 (256 cubed) and the fourth by 4,294,967,296 (256 to the fourth power). Add the four results together. You now have a float between 0 and 1 that can never actually reach 1.
Each game then maps that float to an outcome using its own published formula. The common ones look like this:
- Dice: multiply the float by 10,001, round down to a whole number, then divide by 100. You get a roll from 0.00 to 100.00.
- Limbo and similar single-player multiplier games: divide 0.99 by the float, round down to two decimals, and treat anything under 1.00 as 1.00. That 0.99 is a 1% house edge written straight into the formula.
- Mines: each float picks one tile from those still available (a Fisher-Yates shuffle). Multiply the float by the number of tiles left, round down, and that's the position in the remaining list. The first float picks from 25 tiles, the second from 24, and so on. The first picks, as many as the number of mines you chose, are where the mines sit.
- Plinko: one float per row decides whether the ball drops left or right, so a 16-row board uses 16 floats.
Older dice sites used a different conversion. They took the first five hex characters of the hash, converted them to a decimal number and, if it was under 1,000,000, took the remainder after dividing by 10,000 and divided that by 100. If the number was too large, they moved on to the next five characters. Different arithmetic, same principle. What matters is that the formula is published and applies identically to every player.
Multiplayer crash runs on a hash chain instead
Crash is where people get confused. In a shared crash round, hundreds of players ride the same multiplier, so there's no room for your personal client seed. Most multiplayer crash games use a hash chain instead. The operator creates a starting seed, hashes it, hashes the result, and repeats that millions of times. Rounds are then played in reverse order, so hashing any round's seed gives you the seed of the round before it. Before the first round, the operator publishes a commitment (the hash at the end of the chain) that anyone can walk back to.
To show it didn't shop around for a favorable chain, the operator mixes in a salt nobody could have known when the chain was generated, typically the hash of a Bitcoin block mined after the commitment was announced. Each round's crash point is calculated from an HMAC of the round seed and that salt. To verify a round, you hash its seed repeatedly until you reach the published commitment, then run the site's crash formula on it.
The math holds up. The weak spot is that the operator knows every future crash point once the salt is public, so you're trusting that nobody on staff bets with that knowledge. That's why I rate shared-result crash a notch below dice or Mines, where your own seed is part of every result. Single-player crash variants, which some sites offer next to the multiplayer game, work like Limbo and use your seed pair.
Verify a dice roll by hand: a worked example
The numbers below are a real calculation. The server seed is one we generated for this article, not a live seed from any casino, so you can reproduce every value with any HMAC-SHA256 tool. The standard libraries in Python and JavaScript both handle it in a few lines, and offline HMAC calculators that let you set the key and message separately work too. Don't rely only on the casino's built-in verifier. It's convenient, but it's the casino's code grading the casino's homework.
- Open the fairness settings for the game (usually a Fairness link or shield icon under the bet panel, sometimes in your profile menu). Copy the hashed server seed somewhere safe, along with the current nonce.
- Replace the client seed with one you typed yourself. Then play as normal.
- In your bet history, open the bet you want to check and note its nonce and the result the site recorded.
- Rotate the seed pair. The site reveals the old server seed in plain text and shows a new hash for the next session.
- Run the revealed server seed through plain SHA-256 and compare the output with the hash you saved in step 1, character by character. If they differ, stop. Nothing after this matters.
- Compute HMAC-SHA256 with the server seed as the key and clientseed:nonce:0 as the message. Check the fairness page for the exact format first, because a few sites swap key and message or leave out the cursor.
- Take the first eight hex characters of the output and split them into four pairs. Convert each pair from hex to a decimal number between 0 and 255, then apply the byte-to-float formula above.
- Apply the game formula and compare the answer with your bet history.
Here's every field for one bet, run through the dice and Limbo formulas from earlier:
| Field | Value |
|---|---|
| Hashed server seed (shown before betting) | 9c052f5d49fbfaf984506c9383a90071583ac06222003d59c1c27989013c8838 |
| Server seed (revealed after rotation) | 9f2c4b7e1a3d5f60c8e2b4a6d1f3e5c7a9b0d2f4e6c8a1b3d5f7e9c0a2b4d6f8 |
| Client seed | readers-seed-2026 |
| Nonce | 1 |
| HMAC message | readers-seed-2026:1:0 |
| HMAC-SHA256 output | 2028f3a3dd5de28ebb2c642312b742c82b681a1fcf98b32b727e28a812e99e84 |
| First four bytes | 20, 28, f3, a3 in hex, which is 32, 40, 243, 163 in decimal |
| Float | 32/256 + 40/65,536 + 243/16,777,216 + 163/4,294,967,296 = 0.125625 |
| Dice roll | 0.125625 × 10,001 = 1,256.37, rounded down to 1,256, divided by 100 = 12.56 |
| Limbo multiplier from the same float | 0.99 / 0.125625 = 7.88x |
Keep the same seeds, bump the nonce to 2, and the dice roll becomes 51.58. Nonce 3 gives 37.74. If that first bet had been a three-mine game of Mines instead, the first three floats from the same HMAC output (0.1256, 0.8647 and 0.7311) would put the mines on tiles 3, 21 and 17, counting from 0 in whatever order the site numbers its grid.
Once you've done one by hand, write yourself a small script or use an independent verifier for the rest of your history. Checking one bet proves the site can produce a matching result. Checking a few dozen, spread across sessions, tells you it does so every time.
Rotating seeds without wrecking your own audit trail
You can't verify a bet while its server seed is still active, and that's by design. If the site showed you the live seed, you could calculate every future result and bet accordingly. So verification is always retrospective: play, rotate, check.
A few habits keep that clean:
- Save the hashed server seed before any session you care about (a high-stakes run, a bonus clearance, a long multiplier hunt). A screenshot works; a dated text file is better.
- Rotate after the session, not during it. Rotating resets the nonce, which makes your notes harder to match against bet history.
- Check the previous-seeds list. Decent sites keep a history of revealed server seeds with their hashes and the final nonce for each. If old seeds vanish after rotation, that's a problem.
- Note the next-seed hash if the site shows one. Many casinos display the hash of the upcoming server seed before you rotate, which lets you confirm the new seed wasn't swapped at the moment of rotation.
What a passed check does not prove
Provably fair proves one narrow thing: that a specific outcome came from inputs fixed before you placed the bet, using the published formula. That's valuable. It's also where the guarantee ends.
Third-party slots aren't covered. Games from studios like Pragmatic Play or Hacksaw run on the provider's servers with a certified random number generator. You can't verify a spin. You're relying on testing labs such as GLI, BMM or iTech Labs, and on the provider's reputation. Many providers also ship several RTP versions of the same game and let the casino pick one, so the 96.5% quoted in a review elsewhere might be lower at the site you're on. Open the game's info panel and check the RTP shown there.
Live dealer tables and the sportsbook aren't covered either. Different systems, different trust model.
It says nothing about withdrawals. A casino can run perfectly verifiable dice and still stall your cashout, demand documents after a win or cap withdrawals at a trickle. Provably fair games and slow payouts coexist happily.
It doesn't prove solvency. Whether the site holds enough crypto to pay every balance is a separate question, and very few operators publish anything resembling proof of reserves.
It doesn't make the edge small. A game with a 1% edge and a game with a 4% edge are equally provably fair. The edge sits right there in the formula, which is the useful part: you can read it instead of trusting a marketing number. Our breakdown of house edge on crypto Originals compares the common games.
Fairness-page red flags we look for during testing
When we review a site, the fairness page gets the same scrutiny as the cashier. These are the things that cost points or get a site rejected outright:
- The hashed server seed only appears after the bet settles. A commitment shown after the fact commits to nothing.
- There's no way to edit the client seed, or edits don't stick.
- Revealed server seeds aren't available anywhere, or the history only covers the last couple of rotations.
- No formula is published, and the only verification route is a button on the casino's own site.
- A revealed seed doesn't hash to the value shown earlier. That's a fail with no appeal.
- Nonces in the bet history skip numbers.
- The provably fair label is slapped on third-party slots, which tells you the operator either doesn't understand the system or hopes you don't.
Fake fairness pages are a recurring feature of outright scam sites, and we cover the wider pattern in how to spot a scam crypto casino.
How fairness checks feed into our scores
Provably fair verification sits inside the Trust criterion, which carries 28% of every rating, the largest single weight in our testing method. When we test a site, we verify Originals bets by hand against the published formulas rather than trusting the in-site checker, and we repeat the check when a site changes its fairness implementation.
The sites that do this well make it boring. Stake has documented its seed system for years, and its fairness pages spell out the byte-to-float conversion and the per-game formulas. Duel.com advertises 99.9% RTP on its Originals, which is exactly the kind of claim provably fair lets you test: the edge is in the formula, so you can confirm it instead of taking the number on faith. Our current shortlist is on the best provably fair casinos page.
One last point. A verified result tells you the dice weren't loaded. It doesn't change the math of the game, and no seed choice makes a bet more likely to win. Gambling is for adults (18+, or older where your local law says so), and if it stops being fun, the tools on our responsible gambling page are a better use of ten minutes than another seed rotation.
Questions fréquentes
Can a casino still cheat on a provably fair game?
Not on the outcome of a verified bet, as long as you set your own client seed after seeing the hashed server seed and the revealed seed matches that hash. It can still misbehave in ways the system doesn't cover, such as stalling withdrawals, voiding winnings under vague terms or running low-RTP versions of third-party slots. Provably fair is one check, not a full audit.
Do I need to know how to code to verify a bet?
No. Any HMAC-SHA256 calculator that lets you enter a key and a message, plus a SHA-256 tool, is enough to check a single bet by hand. Converting four hex pairs to decimal and applying the game formula takes a calculator and a couple of minutes. A short script only becomes worth it when you want to check dozens of bets.
Why can't I see my current server seed?
Because if you could, you'd be able to calculate every upcoming result and only bet when you knew you'd win. The site shows you the hash instead and reveals the actual seed once you rotate to a new pair. After rotation you can verify every bet made with the old seed.
Are slots at crypto casinos provably fair?
Generally not. Slots from third-party studios run on the provider's own certified random number generator and are audited by testing labs, not verified with your seeds. Provably fair normally applies to a casino's in-house Originals such as dice, Limbo, Mines, Plinko and crash.
Does changing my client seed change my luck?
No. Each new seed pair produces a different sequence of results, but every sequence follows the same odds and the same house edge. Changing seeds matters for verification, not for your chances of winning.