Roulette Probabilmente Equa
Verifica il risultato dell'ultima operazione, esegui il codice sottostante da solo
- Account
- Hash del Seed Successivo
- Seed Rivelato
- Risultato dello Spin
- 0
#!/usr/bin/env node
const crypto = require("crypto");
// calculate hash from seed
function hash() {
return crypto.createHash("sha256").update(
""
).digest("hex");
};
function calculateNumber () {
const hmac = crypto
.createHmac("sha512", "")
.update(
""
)
.digest("hex");
const first7 = hmac.substring(0, 7);
return Math.round(parseInt(first7, 16)
/ 33);
}
// caculateNumber() === 0