Connecting to chat...
You can independently verify any previous result by using the code displayed below. Simply input the game hash of the game you want to verify. You can execute this code yourself using Node.js, but we understand that for some of you, this may be beyond your technical know-how. So, we have created an easy way for you to execute this code directly from your browser. It runs the exact same code which is shown below, without the hassle of having to set up Node.js on your home computer.
Note: Our Random Number Generator algorithm was updated on 20th Mar 2020.
For all games played before Game#135147 on 20th Mar 2020, please use this code for independent verification instead.
Crash uses an HMAC-SHA256 algorithm on the round seed to derive the crash multiplier.
The formula for verifying the result of a game hash is below. Simply edit the seed value to that of the seed for the game which you want to verify.
const crypto = require('crypto');
// --- BEGIN: Fill these values
const seed = '2826d440b0fcad643e3008693c3a93ef81b31675ca00d686e44c40d5e83d7bb6';
// --- END: Fill these values
// With example values ^ it will output `Game crashed at 2.11x`
const verboseMode = false;
const houseEdgePercent = 6.66;
const crashTick = getCrashTickFromSeed({ houseEdgePercent, seed });
console.log(`Game crashed at ${(crashTick / 100).toFixed(2)}x`);
/** * Below this line are algorithmic functions used for calculating a roll value *
============================================================================= */
function log(message) {
if (verboseMode) {
console.log(message);
}
}
function getCrashTickFromSeed({ houseEdgePercent, seed }) {
const hash = crypto.createHmac('sha256', seed).digest('hex');
log(`Hash: ${hash}`);
const h = Number.parseInt(hash.slice(0, 52 / 4), 16);
const e = Math.pow(2, 52);
const result = (100 * e - h) / (e - h);
const houseEdgeModifier = 1 - houseEdgePercent / 100;
const endResult = Math.max(100, result * houseEdgeModifier);
return Math.floor(endResult);
}