What RNG algorithm do crypto dice games use?
Crypto dice games use cryptographic hash functions as their RNG (Random Number Generator): Primary algorithm — HMAC-SHA512: Used by Stake.com, Primedice, BC.Game, and most reputable platforms. HMAC (Hash-based Message Authentication Code) combines a key with a message. SHA-512 produces a 512-bit (128 hex character) output. The output is deterministic but unpredictable without knowing all inputs. How the roll number is derived: 1) Compute HMAC-SHA512(server_seed, client_seed:nonce:round). 2) Take the first 8 characters of the hex output. 3) Convert to a decimal number. 4) If the number is over 999,999, use the next 8 characters (repeat until valid). 5) Divide by 10,000 to get a result between 0.00 and 99.99. Why HMAC-SHA512 is secure: Computationally infeasible to reverse (find inputs from output). Tiny input changes produce completely different outputs (avalanche effect). No known practical attacks against SHA-512. Used in banking, SSL/TLS, and cryptocurrency protocols. Alternative algorithms: Some platforms use SHA-256 (shorter output but equally secure). A few use custom algorithms (less trustworthy — avoid these).

