QuantumFair
Run the demo

QuantumFair · Quantum Leap track

Classical randomness can be cracked.Quantum randomness can’t.

One seed replays a generator’s “luck” forever. A measured qubit has no seed.

Run the live demo See the exploit

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

A pseudo-random number is a formula in disguise.

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.

How the Novomatic slot exploit worked

Five steps · no tampering
  1. 1

    Observe

    Film a few dozen spins.

  2. 2

    Reconstruct

    Recover the PRNG’s state from them.

  3. 3

    Predict

    Compute the next spins.

  4. 4

    Cue

    A phone buzzes before a win.

  5. 5

    Collect

    Press. The machine pays.

Source: WIRED, “Russians Engineer a Brilliant Slot Machine Cheat — And Casinos Have No Fix,” 2017.

The stakes

Casinos · cryptography

Same flaw. Bigger jackpots.

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

Don’t hide the seed. Remove it.

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.”

Why a qubit isn’t a coin flip
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

Pull the lever. Then try to pull it again.

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.

Bits per run

One machine · /classical-draw

The slot machine

LUCKY SEED

Drag to turn. Pull the lever down.
Seed
— — — —
Attacker’s prediction
— · — · —
Payout line
7 · 7 · 7

The server picks a 4-digit seed when you pull.

Behind the reels ·Seeded PRNG

The generator

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.

Output stream · first 64 of 256 bits

Run
Replay
Randomness check · NIST monobit + runs
Replay attack · same seed again

The attack · /attack

See half the bits. Predict the other half.

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

Already in production.

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.

Run the demo again Back to top