如何为gpg生成熵?CentOS 7虚拟机

如何为gpg生成熵?CentOS 7虚拟机,centos,virtual-machine,gnupg,entropy,Centos,Virtual Machine,Gnupg,Entropy,我正在虚拟机(Parallels)中使用CentOS 7。我的gpg密钥生成需要更多的熵来生成密钥。我得到以下信息: 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

我正在虚拟机(Parallels)中使用CentOS 7。我的gpg密钥生成需要更多的熵来生成密钥。我得到以下信息:

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.
如何为该进程生成随机字节

我尝试了一些生成熵的技巧,但似乎我需要更多的随机位

有些东西对别人有用,但对我没用:

1# ls -R /
2# sudo md5sum /dev/sda &
命令#1每2秒生成约15位。

命令#2产生最小的熵

请参见serverfault:感谢@MarkusLaire的回复。我看了看帖子。它需要安装额外的软件包。我在循环中重复了命令#1,它能够为我的4096位密钥生成足够的熵。例如{1..100}中的i;do ls-R/;完成。如果需要额外的熵,重复循环。虽然生成足够的熵需要更长的时间,但可以在脱机模式下完成。另外,我不明白包是如何生成随机位的。对于偏执狂来说,这是首选方法。它从不会阻塞的
/dev/uradom
获取熵,而不是可以阻塞的
/dev/random
。谷歌关于它们了解更多信息,这些是linux中的标准设备。请参见serverfault:感谢@MarkusLaire的回复。我看了看帖子。它需要安装额外的软件包。我在循环中重复了命令#1,它能够为我的4096位密钥生成足够的熵。例如{1..100}中的i;do ls-R/;完成。如果需要额外的熵,重复循环。虽然生成足够的熵需要更长的时间,但可以在脱机模式下完成。另外,我不明白包是如何生成随机位的。对于偏执狂来说,这是首选方法。它从不会阻塞的
/dev/uradom
获取熵,而不是可以阻塞的
/dev/random
。谷歌关于它们了解更多,这些是linux中的标准设备。