Mtihc / bustabit-script-simulator

Simulate running a script on bustabit
21 stars 10 forks source link

The thinking community #2

Closed Pedroxam closed 4 years ago

Pedroxam commented 4 years ago

Have you made a tool for fraud site?

This site say "this game is fair" because we use following function:

function gameResult(seed, salt) { const nBits = 52 // number of most significant bits to use // 1. HMAC_SHA256(key=salt, message=seed) const hmac = crypto.createHmac("sha256", salt) hmac.update(seed) seed = hmac.digest("hex") seed = seed.slice(0, nBits/4) const r = parseInt(seed, 16) let X = r / Math.pow(2, nBits) // uniformly distributed in [0; 1) X = 99 / (1 - X) return Math.max(1, result / 100) }

It's better to put this function inside the admin hole! Admin of this site thinks everyone is stupid! This bustabit is a crypto scaming site.