**
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.
这时候通过打字和移动鼠标很难满足。
解决办法是安装 rng-tools 这个工具,通过 yum install rng-tools完成安装。
之后再执行命令:rngd -r /dev/urandom,生成密钥就能瞬间完成了。


本文介绍了解决GPG生成密钥时需要大量随机数的问题。通过安装并使用rng-tools工具,可以显著加快密钥生成速度,提升工作效率。
1231

被折叠的 条评论
为什么被折叠?



