Helping The Random Number Generator To Gain Enough Entropy With rng-tools (Debia

Written By
FT
Falko Timme
Dec 14, 2010

[ Thanks to Falko
Timme
for this link. ]

“You might know this situation: you want to generate a
GPG or SSL key, and during that operation, your system tells you
that no more random bytes are available and that it needs to
collect more entropy, and you are stuck. This short guide tells you
how to solve this problem with the package rng-tools on Debian
Lenny.

“I do not issue any guarantee that this will work for you!

“1 Preliminary Note

“Let’s assume you want to generate a GPG key:

“gpg –gen-key

“If you are unlucky, the command might stop in the middle with a
message like this:

“We need to generate a lot of random bytes. It is a good idea to
perform some other action (type on the keyboard, move the mouse,
utilize the disks) during the prime generation; this gives the
random number generator a better chance to gain enough
entropy.”


Complete Story

FT

Falko Timme

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.