
Lava Lamp Random Number Generator: How Entropy Seeds Slots
Cloudflare's lava lamps are a backup entropy source. How a seed feeds a cryptographic RNG, and why a certified slot RNG never needs the wax.
A lava lamp random number generator films moving wax, turns the pixel noise into unpredictable seed bits and hands them to a cryptographic algorithm that stretches them into a long random stream. Cloudflare's famous wall is a secondary source of randomness for its servers, not the main one. A certified slot RNG gets its unpredictability from the same two parts (a seed nobody can guess plus a vetted algorithm), and the lamps are optional.
Does Cloudflare really use lava lamps for randomness?
Yes, as a hedge. LavaRand is mixed in on Cloudflare's production servers while the operating system's default mechanism does the everyday work. The idea predates the company: it was first built by Silicon Graphics and patented in 1996.
The wall solves a problem every computer has. Software is deterministic, so a machine can only slowly collect unpredictable input by measuring its environment. Wax blobs are one environment. Disk timing, network jitter and hardware noise are others.
Why statistical randomness is not enough
Cryptography needs numbers that are unpredictable, not just statistically random. A sequence can pass every frequency test and still be guessable by anyone who knows how it was produced, which is why the seed matters as much as the algorithm.
So the job splits into two layers, each with its own NIST standard:
| Layer | What it does | Standard |
|---|---|---|
| Entropy source | Gathers a small amount of genuinely unpredictable input (lamps, OS noise, hardware) | NIST SP 800-90B, January 2018 |
| Deterministic generator (CSPRNG) | Expands that input into a large unpredictable stream | NIST SP 800-90A Rev. 1, June 2015 |
SP 800-90B sets design rules and validation tests for entropy sources, which are meant to be paired with the SP 800-90A generators. Those generators are built on hash functions or block ciphers. The step in between is the clever part: a CSPRNG stretches one unpredictable input into a much larger output that is also unpredictable. One good seed, millions of usable numbers.
What does a slot RNG have to prove?
Gambling regulators judge the output, not the hardware that seeded it. The UK Gambling Commission's remote technical standards (RTS 7, page last updated October 2025) are one of the most detailed public rulebooks for game RNGs, and they spell out the properties:
- Unpredictable. For a software RNG it must be computationally infeasible to predict the next number without complete knowledge of the algorithm and the seed value.
- Seeding cannot leak. Seeding and re-seeding must not introduce predictability. The seed is a regulated property, not a nice extra.
- No twins. Two RNG instances must never synchronise onto the same stream. Two machines started from an identical seed would be exactly that failure.
- Uniform. Output is spread evenly over the entire range, and game outcomes land at their theoretical probabilities.
- Scaling keeps the qualities. Raw output converted to a game range, say 1 to 52 for a deck of cards, must keep every one of those properties after the conversion.
- Testable. Acceptably random means shown to a high degree of confidence through generally accepted statistical tests.
Why a certified slot RNG needs no lava lamps
Read those rules again and the lamps disappear. The test is that nobody without the algorithm and seed can predict the next number, and that seeding opens no gap. Any entropy source that clears that bar works, whether it is operating system noise, a hardware chip or a wall of wax. The lamps are photogenic, not magic, and that is why even Cloudflare treats them as a backup.
For a player the maths is blunt. An RNG that passes these rules has no pattern to read, and uniform output means every result arrives at its programmed probability. The price of a spin lives elsewhere: in the slot RTP meaning of the long-run return, in what slot volatility measures about the swings, and in symbol pays such as the Legacy of Dead paytable. More on seeds, scaling and testing sits in our random number generators hub.
Maths questions
Does Cloudflare use lava lamps to generate random numbers?
Yes, but only as a secondary, hedging source. Its production servers also rely on the operating system's default randomness mechanism, and the lamp feed is mixed in alongside it.
What does random number generation mean?
Producing values that are uniformly distributed and, for anything security-critical, unpredictable. A sequence can pass statistical tests and still fail if someone can work out the next value.
How do I generate a random number?
For anything where guessing matters, take an unpredictable seed from the environment (the operating system collects one) and feed it to a cryptographically secure generator. The generator stretches that small seed into as many numbers as you need.
Game files and sources
- UK Gambling Commission, Remote gambling and software technical standards (RTS 7), 31 October 2025
- NIST, SP 800-90B: Recommendation for the Entropy Sources Used for Random Bit Generation, January 2018
- NIST, SP 800-90A Rev. 1: Recommendation for Random Number Generation Using Deterministic Random Bit Generators, June 2015
- Cloudflare, Randomness 101: LavaRand in Production, undated, accessed November 2026



