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
3 weeks 6 days
Go same error
Try dd a large file
dd if=/dev/zero of=5gfile bs=1G count=5
It works