Unpredictable dice: what was wrong and what we changed
We found that the dice in online games could, in principle, be worked out before they were rolled: their seed was built from information every player can see. We found no sign that anyone did it. Since 1 October every roll is seeded with a secret only the server holds, and the old prediction is now right one time in 36 — pure chance.

In plain words
Here is what we found. Everything random in an online game — the two dice, the Jackpot die — comes from a random-number generator, and a generator has to start from a seed. Ours was built from two things every player can see: the game’s id, which is in your address bar, and the number of the move, which the game hands back after every action. The generator itself is ordinary published code. Put those together, and someone who knew how could have computed a roll before making it — and, in principle, even picked which of the next few rolls they got.
We checked it on real games rather than in theory. Of the last 2,000 rolls before the fix, 1,985 — 99.3% — were exactly what that public information predicted.
Did anyone use it?
Then we looked for anyone using it, and found no one. The bet where knowing the roll pays off most directly is the Jackpot. Over the seven days before the fix, 2,354 Jackpot bets won 31.4% of the time, against the 31.1% that chance alone predicts, and no player’s record stood out.
Questions people ask
Are the dice in opolyx fair?
Yes. Across the 247,968 rolls made from 2 to 6 October 2026, each face of each die came up between 16.54% and 16.77% of the time — a perfect die gives 16.67% — and doubles came up 16.67% of the time.
Can anyone predict the dice in opolyx?
No — not since 1 October 2026. Every roll is seeded with a secret that exists only on the server, and the old prediction now matches 2.76% of rolls: the 2.78% that guessing two dice blind would give.
Did anyone use the old weakness?
We found no sign of it. In the seven days before the fix, 2,354 Jackpot bets won 31.4% of the time against the 31.1% that chance alone predicts, and no player’s results stood out.
Where is a roll decided?
On the game server, at the moment you roll, by a random-number generator seeded with a secret nobody else holds. The result goes into the game log, and replays and statistics read the log rather than rolling again.
For the technically curious
The seed was a label, <game id>:<move number>, hashed with FNV-1a and fed to mulberry32. That design was deliberate — it made every game reproducible from its own log — but reproducibility never needed the seed to be public. Every outcome is written into the event that produced it, and replays and statistics read those events rather than rolling again.
// before: anyone who knew the game id and the move number could do this
rng = mulberry32(fnv1a(`${gameId}:${seq}`))
// after: the same label, signed with a key that never leaves the server
rng = mulberry32(uint32(hmacSha256(serverSecret, `${gameId}:${seq}`)))Now the label goes through HMAC-SHA256 first, keyed with a 32-byte secret that exists only inside the server. By default the secret is generated fresh every time the server starts. Nothing needs it to survive a restart, because no past roll is ever recomputed — and a secret that is never written down is a secret that cannot leak.
Every draw that decides something in a game is signed this way: the dice, the Chance draw, the Jackpot die and the choice of who moves first.
And the dice are as fair as dice should be. Across every roll since 2 October — 247,968 of them — each face of each die came up between 16.54% and 16.77% of the time, against 16.67% for a perfect die, and doubles came up 16.67% of the time:
| Face | First die | Second die |
|---|---|---|
| Face 1 | 16.75% | 16.72% |
| Face 2 | 16.77% | 16.65% |
| Face 3 | 16.56% | 16.61% |
| Face 4 | 16.54% | 16.70% |
| Face 5 | 16.67% | 16.70% |
| Face 6 | 16.72% | 16.62% |
The fix was checked on the same terms as the problem. The prediction that matched 99.3% of rolls before was re-run over a full day afterwards: it matched 1,388 of 50,212, which is 2.76% — the 2.78% you would expect from guessing two dice blind.
