Provably fair verifier

Recompute any Dice, Limbo, Mines or Crash result from its seeds. Everything runs in this page; nothing is sent anywhere.

How it works

Each value is HMAC_SHA256(key = server seed, message = client seed + ":" + nonce + ":" + cursor), split into 4-byte big-endian integers u, giving floats u / 2^32. Dice rolls floor(f * 10000) / 100. Limbo uses the integer directly: floor(RTP * 2^32 / ((2^32 - u) * 100)). Mines takes the first m tiles of a Fisher-Yates shuffle of 0-24. Crash rounds use a SHA-256 hash chain: crash = max(1.00, floor(RTP * 2^52 / (2^52 - X)) / 100) with X the first 52 bits of HMAC_SHA256(game hash, salt), and every round hash must hash to the one before it.

The code here is the same game math the casino runs (@ce/games) with a browser implementation of SHA-256 that is tested against the server's node:crypto results.