- 论坛徽章:
- 0
|
原帖由 diancn 于 2009-8-26 08:47 发表 ![]()
用 "-r /dev/random" 或 "-r /dev/urandom" 指定随机设备。 后者随机性较差,详细差别问问google。适合centos4/5,其它平台类似。
以下来自bv9ARM手册,供参考。
-r randomdev Specifies the source of ran ...
多谢指教!默认是用的/dev/random,换成/dev/urandom后工作得很好。
以下是网上查到的某位老兄对这个的解释:
“You may be having a depleted entropy issue. By default, dnssec-keygen uses /dev/random as its source of random data for key generation. If, for some reason, demand outstrips supply, the process could appear to hang, while it waits for more numbers.
One solution might be to use /dev/urandom instead. It's a "less random" (and hence easier to generate) source of random data.”
非常感谢diancn兄为俺指明方向!开始都不知道还跟这东西有关系。。 |
|