Encryption Observer

Glossary The basics

Randomness

Keys must be picked at random. If a computer's random numbers are even slightly predictable, an attacker can guess the keys, however strong the algorithm.

Think of it like this

A lottery where the balls are secretly weighted. The machine looks fair but someone who knows the trick can predict the result.

Why it matters

Bad random numbers have caused serious failures, such as the Debian OpenSSL bug and Sony's PlayStation 3 key leak.

Where you meet it

Hidden inside every device. You never see it unless it goes wrong.

Good random sourceunpredictable340 trillion trillion trillion keyspossible for a 128-bit keyBroken sourceDebian bug, 2006 to 2008Only 32,768 possible keysfor each key type and size
Keys are only as strong as the random numbers behind them. A Debian bug from 2006 to 2008 left only 32,768 possible keys of each type and size.

More diagrams: The rules of a one-time pad · The life of a cryptographic key

Go deeper history and technical detail

Between 2006 and 2008 a change to Debian Linux's copy of OpenSSL left only about 32,768 possible keys, so they could all be listed. In 2010 researchers showed Sony had used the same 'random' number for every PlayStation 3 signature, which let them work out Sony's private signing key. Operating systems now gather randomness from hardware events and dedicated chip circuits.

Read or watch next

Related terms

Cite this page Encryption Observer, “Randomness”, encryption.observer/terms/randomness/, checked December 2026.