HOW IT WORKS
clientSeed:nonce:cursor as the message. Same inputs always produce the same output.INTERACTIVE DEMO
This page runs the algorithm in your browser so you can inspect every step. In production the server seed is generated and stored on the server until it is revealed.
Each click uses the current seeds + nonce to generate a provably fair random result.
| Nonce | Type | Result | Raw Float |
|---|---|---|---|
| No bets yet | |||
WHERE WE USE IT
This is the RNG we put on games that need a verifiable random outcome: dice, crash math, cards, combat, grids. Sports contests that settle on live scores (squares, pick'em, survivor) don't use it for the score. Slots live on Stake use Stake Engine's RGS, not this browser demo.
THE ALGORITHM
This demo uses the Web Crypto API for SHA-256 and HMAC-SHA256. Production keeps the server seed on the server until reveal. The float math below is the same.