Game Result Generation Algorithms
Crash uses unique float generation algorithm. To calculate float we've generated large amount of hashes (server seeds), each game has its own hash.
// hash of 680200 bitcoin block const clientSeed = '00000000000000000000a2599df86fa2e5349fc9c52402041bd250f5bfba80ee'; const hash = crypto .createHmac('sha256', serverSeed) .update(clientSeed) .digest('hex'); // In 1 of 101 games the game crashes instantly. if (divisible(hash, 101)) return 0; // Use the most significant 52-bit from the hash to calculate the crash point const h = parseInt(hash.slice(0, 52 / 4), 16); const e = 2 ** 52; const event = Math.floor((100 * e - h) / (e - h));