Re: no entropy and no output at /dev/random (quick question)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Javier Villavicencio wrote:

Javier Villavicencio wrote:
>
> # cat /dev/random (5 minutes, the server working, nothing)
> ctrl+c
> # cat /dev/urandom
> <snip> (lots of randomness)

Playing with my desktop machine (which is newer and completely different from the servers) I've found that I run out of entropy -REALLY FAST-, even this one is supposed to have those hardware random stuff generators.

Is this a normal behaviour?, or, I think i've readed this somewhere, it's encouraged to use /dev/urandom instead of /dev/random?

Salu2.

/dev/random returns much more randomness number than /dev/urandom. /dev/random is waiting for some pool of entropy (move your mouse, use your NIC, et cetera), but /dev/urandom doesn`t. Resume; use /dev/random in situations, which requires high quality of randomness - generating keys with openssl and so on. /dev/urandom is much more faster.

Vladimir

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux