Provably Fair Roulette

Verify your last spin result, run the code below by yourself

Account
Next Seed Hash
Revealed Seed
Spin Result
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) 
    / 7456540.416);  
}

// caculateNumber() === 0