MisterYunes
Nuevo
- Registrado
- 22 Sep 2019
- Mensajes
- 1
- Puntos
- 0
functiongetPoint(hash) {
// In 1 of 15 games the game crashes instantly.
if (divisible(hash, 15)) return0;
// Use the most significant 52-bit from the hash to calculate the crash point
let h = parseInt(hash.slice(0, 52 / 4), 16);
let e = Math.pow(2, 52);
constpoint = (
Math.floor((100 * e - h) / (e - h)) / 100
).toFixed(2);
return point;
}
constpoint = getPoint(hash);
return (
<tr>
<tdstyle={{ color: point < 2 ? "red" : "green" }}>
{point}
</td>
<td>{seed}</td>
<td>{hash}</td>
</tr>
);
// In 1 of 15 games the game crashes instantly.
if (divisible(hash, 15)) return0;
// Use the most significant 52-bit from the hash to calculate the crash point
let h = parseInt(hash.slice(0, 52 / 4), 16);
let e = Math.pow(2, 52);
constpoint = (
Math.floor((100 * e - h) / (e - h)) / 100
).toFixed(2);
return point;
}
constpoint = getPoint(hash);
return (
<tr>
<tdstyle={{ color: point < 2 ? "red" : "green" }}>
{point}
</td>
<td>{seed}</td>
<td>{hash}</td>
</tr>
);