The recipe in four steps
- Commit. Before you bet you see only a hash of the house’s seed, and you are free to set your own client seed.
- Bytes. For each bet, HMAC-SHA256 is run with the server seed as the key and
client seed:nonce:roundas the message. Each run gives 32 bytes; round 1, 2 and so on are only needed when a game uses more than eight numbers. - Floats. Each group of four bytes is folded into a fraction from 0 up to 1: the first byte over 256, plus the second over 256², and so on.
- Game event. Each game turns floats into its own outcome. Plinko uses one float per row and goes right when the float is 0.5 or more.
“For each verifiable bet, a client seed, a server seed, a nonce and a cursor are used as the input parameters for the random number generation function. This function utilises the cryptographic hash function HMAC_SHA256 to generate bytes”
“Each set of 4 bytes are used to generate floats between 0 and 1 (4 bytes are used instead of one to ensure a higher level of precision when generating the float.)”
“Players can choose between 8 and 16 pins of play, which determines the number of game events required to generate a complete path from top to bottom. Since there are only two possible directions (left or right) the translation is done by multiplying each float by 2”
A worked example, start to finish
These seeds are made up for this page (the server seed is the SHA-256 of a sentence of ours), so you can follow the arithmetic without an account. They are pre-filled in the checker below. Every number shown here is worked out from them when the site is built, with the same code the checker runs.
| Server seed | 9966316dc8d9692e120ec7272245227a5182c3037924a47505880bdf04180b03 |
|---|---|
| Its SHA-256 (the hash shown before betting) | f5c9509209b88c1fbc5ab187c9c89a2185f33df23cc35dbfbf10718df550ff89 |
| Client seed · nonce | fieldnotes-01 · 7 |
Round 0 gives 32 bytes, beginning 29 a7 84 81. As decimals those are 41, 167, 132 and 129, so the first float is:
41/256 + 167/256² + 132/256³ + 129/256⁴ = 0.1627123656
Plinko with 16 rows needs 16 floats, which is 64 bytes, so it takes rounds 0 and 1. The 16 floats give the path L R R R L R L L L L R R L L L L: 6 rights, so the ball lands in slot 6 counting from the left edge at 0. The same first float would make a Dice roll of 16.27 or a Limbo result of 6.08×.
“Plinko (2 increments per game to cover possible 16 decisions)”
Worksheet: recompute one result
Web Crypto in your browser · nothing is sentDice and Limbo, briefly
Both need a single float. Dice multiplies it by 10,001 and divides by 100, which spreads results over 0.00 to 100.00. Limbo divides one by the float and scales by 0.99 in the published snippet, then rounds down to two decimals with a floor of 1×. The checker shows Dice cut, not rounded, to two decimals; if the game screen ever shows a value one hundredth higher, that rounding step is the place to look.
“In our version of dice, we cover a possible roll spread of 00.00 to 100.00, which has a range of 10,001 possible outcomes.”
“const floatPoint = 1e8 / (float * 1e8) * houseEdge;”
Limits of the check
- It covers the operator’s own in-house titles, which is where the provably-fair pages apply.
- It proves the outcome was fixed by seeds committed in advance. It says nothing about the payout table.
- The algorithm pages we used are archived copies; if the live pages change, recheck there.
“The underlying concept of provable fairness is that players have the ability to prove and verify that their results are fair and unmanipulated.”
“To reveal the server seed from its hashed version, the seed must be rotated by the player, which triggers the replacement with a newly generated one.”
Related notes
- Note 07: VIP & rakeback — the 15 thresholds turned into expected house take, and a rakeback calculator
- Note 01: Review — a scorecard of 14 questions, each answered from the operator's own page or marked 'not published', with a chart of the split
- Note 08: Limits & exclusion — a cooling-off clock that shows when a change takes effect
