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