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 339300 bitcoin block const clientSeed = '000000000000000007a9a31ff7f07463d91af6b5454241d5faf282e5e0fe1b3a'; 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));