Search Google

Thursday, May 22, 2008

Linux kernel中random的用途

昨天在產生PGP key pair的時候終於第一次見到Linux中random的用途:

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 280 more bytes)

No comments: