Casino floor
Novomatic
A Russian group cracked the slot PRNG and timed wins in live casinos.
WIRED, 2017
QuantumFair · Quantum Leap track
One seed replays a generator’s “luck” forever. A measured qubit has no seed.
1 seed
replays every spin and every key.
32,768
possible keys after Debian’s OpenSSL bug.
0 seeds
behind a qubit. Nothing to steal.
The crack
Classical PRNGs
Same seed, same numbers. Learn the seed and you see every result before it happens.
Drag to spin. Scroll back and they land on the same digits.
The whole generator
rng = random.Random(seed)
bit = rng.getrandbits(1)
The classical side of our backend: Python’s Mersenne Twister with a 4-digit seed. It looks random. It is arithmetic.
Same seed, identical reels.
Observe
Film a few dozen spins.
Reconstruct
Recover the PRNG’s state from them.
Predict
Compute the next spins.
Cue
A phone buzzes before a win.
Collect
Press. The machine pays.
Source: WIRED, “Russians Engineer a Brilliant Slot Machine Cheat — And Casinos Have No Fix,” 2017.
The stakes
Casinos · cryptography
Every encryption key starts as a random number. A predictable number means a predictable key.
Casino floor
Novomatic
A Russian group cracked the slot PRNG and timed wins in live casinos.
WIRED, 2017
Server keys
32,768
A Debian patch seeded OpenSSL from the process ID. Every key came from a tiny, guessable set.
CVE-2008-0166
Crypto wallets
2013
Android’s SecureRandom repeated values in Bitcoin signatures. Attackers took the keys and the coins.
Bitcoin.org advisory, Aug 2013
Web encryption
1995
Netscape seeded SSL keys from the clock and process IDs. Goldberg and Wagner rebuilt them.
Dr. Dobb’s Journal, 1996
One root cause: the output came from something an attacker could recover.
The turn
Quantum randomness
A measurement isn’t computed. Its outcome doesn’t exist until it happens, so there’s no seed to steal.
The whole generator · click a step
|ψ⟩ = 0.707 |0⟩ + 0.707 |1⟩
Classical
output = f(seed)
Hide the seed better and the attack gets harder, never impossible.
Quantum
outcome = measure(H|0⟩)
A Hadamard gate makes an equal mix of 0 and 1. Measuring it gives a bit nobody could know in advance.
“A qubit can be 0 and 1 at once. Measure it and it picks a side, undetermined until that exact moment.”
| Property | Classical PRNG | Quantum measurement |
|---|---|---|
| Where the number comes from | A formula applied to stored state | A measurement of a qubit |
| Seed | Yes — in this demo, a 4-digit number | None |
| Same input, same output? | Always | There is no input |
| Passes statistical tests? | Yes | Yes |
| Predictable if the state leaks? | Completely | There’s no state to leak |
Could a seed hide inside the qubit? Bell tests (2022 Nobel Prize in Physics) rule out local hidden variables.
Live demo
Interactive · Quantum Rings SDK
One slot machine, two sources of luck. The switch picks what spins the reels: our backend’s seeded PRNG, or qubits measured through the Quantum Rings SDK. Spin, then replay. Do it on both sides of the switch, then attack both runs.
One machine · /classical-draw
LUCKY SEED
No seed to type. The reels come from qubits measured as you pull, so there’s no input to guess.
The server picks a 4-digit seed when you pull.
Behind the reels ·Seeded PRNG
Everything the reels show comes from one line
rng = random.Random(seed)
bits = [rng.getrandbits(1) for _ in range(256)]
reels = bits[:30] → 3 digits
Python’s Mersenne Twister, seeded with a number from 0 to 9,999. Know the seed and you know every reel and every bit, now and on every replay.
What you’re looking at
The output looks random and passes the statistics. Replay the seed and the machine does exactly the same thing again. Then flip the switch to Quantum draw and try the same.
First qubit
?
Not decided yet.
Or drag the arrow on the sphere. 90° is the Hadamard circuit; anything else runs RY(θ). The next pull uses this circuit.
Output stream · first 64 of 256 bits
The attack · /attack
The server gets the first half of your last PRNG spin and your last quantum spin, tries all 10,000 seeds, and predicts the rest. It isn’t told which side the bits came from.
Spin once with the switch on Seeded PRNG and once on Quantum draw.
Seeded PRNG · hidden bits predicted
—
Quantum draw · hidden bits predicted
—
Each square is one hidden bit. Red means the attacker called it.
Both pass the statistics. Only one survives the replay.
Seeded PRNG replay
—/64
Quantum draw replay
—/64
Deployed today
So what
Wherever fairness and secrecy carry real money.
Lottery · Switzerland
ID Quantique
Its QRNG draws Loterie Romande’s lottery numbers.
QRNG → public draws
Finance · Cloud
Quandela Entropy
Secures financial transactions in OVHcloud datacenters.
QRNG → transaction keys
Quantum computing · 2025
JPMorganChase × Quantinuum
Certified quantum randomness, billed as quantum computing’s first commercial use.
Quantum computer → certified bits
The case, in one line
Fair draws. Unforgeable keys. Nothing to replay.