When we use gpg to create new key pair as follow:
$ gpg --kengen
We sometimes see message as below:
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.
++++++++++++++++++++++++++++++.+++++.++++++++++.
++++++++++.++++++++++.++++++++++++++++++++++++++
++++..++++++++++.++++++++++++++++++++++++++++++...
...............>+++++..........................................................................
.........................................................................................+++++
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 284 more bytes)
Here are some methods to help you generate enough entropy:
Comments
Anonymous
August 7, 2010
1 year 25 weeks
Go same error
Try dd a large file
dd if=/dev/zero of=5gfile bs=1G count=5
It works
Anonymous
July 13, 2011
29 weeks 4 days
another solution
You can also increase entropy ratio by using the guchaos command (available on http://vladz.devzero.fr/soft/GUChaos.c.html). It retrieves random bytes securely from random.org and add them to your system.