Provably fair dice
Every roll at SheshBesh is computed from three ingredients that no single party controls.
- 1Before the match the server generates a secret seed and publishes its SHA-256 hash.
- 2Each player adds their own client seed.
- 3Roll number n = HMAC-SHA256(server seed, "seedA:seedB:n"); bytes below 252 are mapped to dice 1–6 (rejection sampling, no bias).
- 4After the match the server seed is revealed. Anyone can recompute every roll.