thumb|The Wall of Entropy is a wall of lava lamps at the San Francisco headquarters of [[Cloudflare, which was inspired by Lavarand.]]
Lavarand is a hardware random number generator designed and trademarked by Silicon Graphics (SGI) in 1996. The system operates by digitizing the chaotic patterns of warm wax blobs oozing inside an array of lava lamps. This data is then processed with a cryptographic hash function to produce a high-quality seed for a cryptographically-secure pseudorandom number generator (CSPRNG). Its visually distinct method made it a frequently cited example of entropy sourcing.
History
SGI's invention of Lavarand was a direct response to a significant security crisis in the mid-1990s as the Internet was transitioning into a commercial platform. The security of the new Secure Sockets Layer (SSL) protocol depended on high-quality random numbers for generating session keys. In 1995, computer science PhD students Ian Goldberg and David A. Wagner discovered that the implementation of SSL in Netscape Navigator, the era's dominant web browser, used a predictable method for seeding its pseudorandom number generator. The seed was derived from the time of day, the process ID, and the parent process ID. An attacker could potentially guess these values, predict the seed, and compromise a secure session. This vulnerability highlighted the critical need for accessible and unpredictable sources of entropy to seed cryptographic systems.
The system's hardware comprises an SGI O2 workstation, known for its multimedia capabilities; a proprietary SGI O2cam with a 512480 pixel CCD sensor for image capture; and an array of six Lava Lite lamps as the chaotic source. The hashing step produces a 140-byte hash output that is then used to seed a CSPRNG. The patent specifies the Blum Blum Shub generator as a preferred choice for the final stage, which can then produce a rapid stream of random numbers. A significant change is in its output; the SGI system produces a 140-byte seed for an external generator, but LavaRnd was designed to directly output a continuous stream of cryptographically sound random numbers. This redesign led to a major performance increase, from the SGI system's approximate 8,000 bits per second for seed generation to between 77,000 and 206,000 bits per second of random data from LavaRnd on a commodity PC of the era. The hardware requirements are democratized, moving from a specialized SGI O2 workstation to a standard PC and a low-cost webcam. Finally, the legal status changed from the proprietary SGI system covered by a U.S. Patent to LavaRnd's algorithm being placed entirely in the public domain.
Unlike the 1990s system, Cloudflare's Lavarand is not the primary source of entropy for its servers, because modern CPUs include their own high-speed hardware random number generators such as RDRAND. Instead, the data from the lava lamps is a secondary, independent source. The random data is made available to Cloudflare's global servers, which incorporate it into their local entropy pools to protect against any potential systemic flaws in the primary CPU-based generators. Cloudflare has since expanded this concept into a global network of entropy sources, branded as the Wall of Entropy, to diversify its randomness inputs. Other installations include a wall of chaotic double pendulums in its London office and a Geiger counter measuring the radioactive decay of a uranium pellet in its Singapore office.
References
External links
- LavaRnd, the open-source successor
