More Than Five Years In The Making: Creating A New Linux Random Number Generator

Written by Michael Larabel in Linux Security on 14 July 2021 at 05:48 AM EDT. 17 Comments
LINUX SECURITY
The "Linux Random Number Generator" (LRNG) effort as a new drop-in replacement for /dev/random is now up to its 41st revision and in development for more than five years.

Stephan Müller today posted his latest patch series for LRNG as his proposed new approach for handling /dev/random while being a drop-in replacement with API/ABI compatibility to the existing generator.

LRNG aims to be faster by "up to 130%" compared to the current /dev/random along with a variety of other performance optimizations, various crypto handling improvements, improved testing abilities, greater configurability of options, and is of a more modern design.

The v41 patches of LRNG have a clean-up of the initial seeding code, zeroize the seed buffer, initialize the entropy value if there is insufficient entropy, harden the entropy source configuration, and a variety of other low-level improvements to this random number generator code.

It remains to be seen if/when LRNG will finally be deemed ready for mainline, but those curious about this long journey around a new Linux random number generator implementation can find today's 13 patch series on the kernel mailing list.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week