روليت مثبت بالعدل
تحقق من نتيجة صفقتك الأخيرة، قم بتشغيل الكود أدناه بنفسك
- الحساب
- هاش البذرة التالية
- البذرة المكشوفة
- نتيجة الدوران
- 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