in gpg --key-gen
following error occured.
Not enough random bytes available.
Please do some other work to give the OS a chance to collect more
entropy!
(Need 300 more bytes)
What's wrong?
in gpg --key-gen
following error occured.
Not enough random bytes available.
Please do some other work to give the OS a chance to collect more
entropy!
(Need 300 more bytes)
What's wrong?
/dev/random's entropy pool is depleted.
"do something" to generate disk activity, network traffic, etc... and the entropy will build.
"man random" for more info.
"cat /proc/sys/kernel/random/entropy_avail" to see how you're doing, then try the gpg process again.
The Linux kernel maintains a "pool" of random bytes that may be accessed via ioctl calls or via the special /dev/random and /dev/urandom files.
The timing of interrupts handled by the kernel is one of a several sources of randomness that feeds into the pool. Examples are the timing of keyboard and mouse input, the timing of hard drive read/write activity, and the timing of interrupts raised to handle incoming network packets.
All of these sources can be more active when a user is actively interacting with the system. Thus the encouragement to do more "work" in order to trickle more random bytes into the pool for gpg to consume.
lseek(fd, 0, SEEK_SET). – Lekensteyn Jan 28 '13 at 23:16