Provably Fair Blackjack: The Seeded Shuffle and the Real House Edge
In provably fair blackjack a seeded shuffle fixes the deck before you act, while the rule set and basic strategy still decide the house edge you face.
Updated October 24, 2026
Contents
Blackjack verifier
Example round · BlackjackCalculated result · First four cards
9 of hearts, 10 of clubs, 8 of hearts, 2 of clubs
- 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:0(cursor 0 of 7)6bf446d5eea533d95c787f63c2ac5b6943a7f7dcf4dc68f9edf3569f0c50953f - 3
Bytes to a number in [0, 1)
0.4216961164, 0.9322082906, 0.3612136475 … (51 numbers) - 4
Fisher–Yates shuffle of a 52-card deck: position i is swapped with i + floor(x × (52 − i)); cards are dealt from the top
9 of hearts, 10 of clubs, 8 of hearts, 2 of clubs
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.
From seed to result.
The example round under this site’s reference scheme, step by step.
-
Hash commitment
The server seed is hashed and the hash is shown before you play.
f51376a5a542e198… -
HMAC
Server seed as key, message player-17:1:0. Further cursors add more blocks.
6bf446d5eea533d9… -
Numbers in [0, 1)
Four bytes per number; this game reads 51.
x = 0.421696 -
First four cards
Fisher–Yates shuffle of a 52-card deck: position i is swapped with i + floor(x × (52 − i)); cards are dealt from the top.
9 of hearts, 10 of clubs, 8 of hearts, 2 of clubs
You hit on a hard 16, the next card is a 6, and for a second you wonder whether the game knew. In provably fair blackjack it could not have chosen that card for you, because the whole deck was put in order before the hand began and the site committed to that order with a hash. What the commitment cannot do is make blackjack cheaper: the house edge still comes from the rules printed on the table and from how well you play.
That split is the useful way to think about this game. One half is a cryptographic question (was the deck fixed in advance?), and the other is a math question (what do these rules cost me per hand?). They have nothing to do with each other, and most confusion about provably fair blackjack comes from mixing them up.
We take the deck first, then the rules.
How does a seed turn into a shuffled deck?
Dice and crash, like most of the games we cover, need one random number per round. A deck needs many. The standard way to turn a stream of random numbers into a fair ordering is the Fisher–Yates shuffle, first described by Ronald Fisher and Frank Yates in 1938 as a pencil-and-paper method and adapted for computers by Richard Durstenfeld in 1964.
The reference scheme this site uses runs the shuffle front to back. At position 0 it picks a random position from 0 to 51 and swaps those two cards, at position 1 it picks from 1 to 51, and so on up to position 50, where the last swap settles the final two cards. That is 51 swaps, each with its own number. Every one of the 52! possible orders comes out with equal probability, provided each pick is uniform.
deck = A to K of spades, hearts, diamonds, clubs (positions 0 to 51)
for i from 0 to 50:
j = i + floor(x_i × (52 − i))
swap deck[i] and deck[j]
52! ≈ 8.07 × 10^67 possible deck orders (about 2^225.6)
The 51 numbers come from the seeds through a cursor. The HMAC message is client seed:nonce:cursor, and each 32-byte HMAC-SHA256 output is read as eight numbers of four bytes each. Cursor 0 gives numbers 1 to 8, cursor 1 gives 9 to 16, and the shuffle keeps going through cursor 6. One nonce covers the whole deck.
Here is the start of the example round (server seed a411321f…fd78, client seed player-17, nonce 1). The first number is the same one that gives the dice roll of 42.17:
i = 0: x ≈ 0.4216961164 → j = 0 + floor(x × 52) = 21 → 9 of hearts
i = 1: x ≈ 0.9322082906 → j = 1 + floor(x × 51) = 48 → 10 of clubs
i = 2: x ≈ 0.3612136475 → j = 2 + floor(x × 50) = 20 → 8 of hearts
i = 3: x ≈ 0.7604424602 → j = 3 + floor(x × 49) = 40 → 2 of clubs
Cards are dealt from the top, so the first four off the deck are the 9 of hearts, the 10 of clubs, the 8 of hearts and the 2 of clubs. That is this site's reference scheme, not a standard. Real blackjack games build the message, read bytes and run the shuffle in their own ways, so you need the platform's own shuffle code to rebuild its exact deck. What every honest version shares is the order of events: commitment first, cards afterward.
The 52! figure is worth a second look. A random generator with fewer than about 226 bits of internal state cannot reach every possible deck order. A 256-bit server seed, like the 64-hex-character one in this site's example round, carries enough bits to cover that, but the shuffle still has to consume them carefully; a sloppy mapping such as a plain modulo can make some orders slightly more likely than others.
Why can't the dealer pick the next card after you act?
Because the next card was already sitting in position before you saw your first two. The site publishes SHA-256(server seed) before the hand, and SHA-256 output is a fixed 256-bit value, written as 64 hex characters. If the server later swapped in a different seed to steer the deck, the revealed seed would hash to a different value, and anyone comparing the two would see it. The full sequence of commit, play and reveal is described in how commit-reveal works.
Your client seed matters here too. Since you can set it after the commitment is published, the server cannot have pre-selected a seed that produces a deck it likes against your specific seed. The seeds and nonces explainer covers how the nonce then moves you to a fresh deck each hand.
A committed shuffle proves the deck was fixed. It won't tell you whether this table pays 3:2 or 6:5, whether the payouts match the rules on screen, or whether the game uses a weaker rule set than you assumed. Those are covered on what provably fair does not prove, and in blackjack they are where most of the money goes.
What sets the blackjack house edge?
The rules. Two games with identical, perfectly fair shuffles can differ by more than a percent in what they cost you, purely because of the payout on a natural, how many decks are in the shoe, and whether the dealer hits soft 17. With basic strategy, most blackjack games fall between roughly 0.5% and 1% house edge.
The table below lists rule effects from Wizard of Odds, measured against one fixed baseline: eight decks, dealer stands on soft 17, double on any first two cards, double after splitting allowed, split up to four hands. The figures are changes to the player's return, so a negative number raises the house edge by the same amount.
Swipe the table
| Rule change | Effect on player return | What it does to the house edge |
|---|---|---|
| Blackjack pays 6:5 instead of 3:2 | −1.39% | Raises it by 1.39 points |
| No doubling down at all | −1.48% | Raises it by 1.48 points |
| Blackjack pays 7:5 | −0.45% | Raises it by 0.45 points |
| Dealer hits soft 17 | −0.22% | Raises it by 0.22 points |
| Double on 10 and 11 only | −0.18% | Raises it by 0.18 points |
| No doubling after splitting | −0.14% | Raises it by 0.14 points |
| European no hole card | −0.11% | Raises it by 0.11 points |
| Six decks instead of eight | +0.02% | Lowers it by 0.02 points |
| Late surrender against a ten | +0.07% | Lowers it by 0.07 points |
| Resplit aces | +0.08% | Lowers it by 0.08 points |
| Double deck | +0.19% | Lowers it by 0.19 points |
| Single deck | +0.48% | Lowers it by 0.48 points |
Adding the effects for a game's rule list gives a rough estimate, though rules interact, so treat the sum as an approximation. A 6:5 payout dominates everything else on that list. If a provably fair blackjack table pays 6:5, no amount of good deck-count news will rescue it.
The deck count deserves a note in this setting. A game that shuffles a full fresh deck every hand behaves like the first hand of a shoe every time, so the deck count still shapes the starting composition, but card counting has nothing to track. A game could also draw each card independently, as if from an endless supply; that changes the math slightly, and a game that does it should say so in its rules.
Does basic strategy still matter if the deck is fair?
More than anything else you control. The published house edge figures above assume you play every hand the mathematically best way for the rules in force. Deviate, by standing on 12 against a dealer 2 when the chart says hit, or by never doubling, and your real cost climbs well past the table's figure.
Basic strategy has a specific origin: a 1956 paper in the Journal of the American Statistical Association by Roger Baldwin, Wilbert Cantey, Herbert Maisel and James McDermott, worked out with desk calculators while the four served in the US Army. Later work refined it, and charts now exist for each combination of deck count and dealer rule. Use the one that matches the table. A chart for a dealer who stands on soft 17 gives slightly different plays than one for a dealer who hits.
A fair shuffle and a good strategy work together. The commitment guarantees the cards are not reacting to your choices; the strategy makes sure your choices are the best ones against cards that really are random. Neither one turns the edge in your favor. Over many hands the expected loss is the house edge times the total amount wagered, a relationship covered on our page about RTP and house edge.
How would you check a single hand?
After the server seed is revealed, the first two steps are the same as for any provably fair game: hash the revealed seed and compare it to the commitment, then compute the HMAC for your client seed and nonce. The verifier does both for the reference scheme. The third step is rebuilding the deck. Under the reference scheme that is the 51-swap shuffle above; for a real game it needs the platform's published shuffle function, because byte use and the shuffle mapping differ between games.
If you can rebuild the deck, check the order the cards appeared: your two, the dealer's upcard, the hole card, then hits in the order they were taken. A mismatch at any point is a real finding. A match tells you the deal was fixed in advance, and nothing about whether you should have doubled that 11.
Sources
References behind this guide.
6 references
- 01 Wizard of Odds, Blackjack rule variations (opens in a new tab)
- 02 Wikipedia, Blackjack (opens in a new tab)
- 03 Wikipedia, Fisher–Yates shuffle (opens in a new tab)
- 04 Wikipedia, Four Horsemen of the Apocalypse (blackjack), the 1956 basic strategy paper (opens in a new tab)
- 05 NIST FIPS 180-4, Secure Hash Standard (opens in a new tab)
- 06 National Council on Problem Gambling, 1-800-MY-RESET helpline FAQ (opens in a new tab)
Keep reading
- Odds House Edge Explained House edge explained: how the casino's built-in share is computed, what it is by game from blackjack to keno, and what it costs over hundreds of bets. 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
- Games Provably Fair Hi-Lo Provably fair Hi-Lo explained: how a seed picks a card from a 52-card deck, the higher and lower odds for each rank, and why each new card needs new input. Read guide