Someone probably brought this up before but i couldn't find it.
So i was wondering how you can determine the actual house edge just by looking at the code.
Specifically this part of the code:
// This will be the client seed of block 339300
var clientSeed = '000000000000000007a9a31ff7f07463d91af6b5454241d5faf282e5e0fe1b3a';
exports.crashPointFromHash = function(serverSeed) {
var hash = crypto.createHmac('sha256', serverSeed).update(clientSeed).digest('hex');
// In 1 of 101 games the game crashes instantly.
if (divisible(hash, 51))
return 0;
// Use the most significant 52-bit from the hash to calculate the crash point
console.log('hash: '+hash);
var slice = hash.slice(0,52/4);
console.log(typeof hash);
console.log('slice: '+slice);
var h = parseInt(slice,16);
console.log('h: '+h);
var e = Math.pow(2,52);
return Math.floor(((100 * e) - h) / (e - h));
};
----------
I'd really appreciate if someone could elaborate on how this code is used to alter the house edge other than the insta crash function obviously.
The method of converting a game hash to a money pot multiplier is quite complex and i just don't know how i would go about calculating the house edge for a certain multiplier.
Edit: I know it's possible to use odd calculator on bustabit but i'd still like to know what it does
