Hello, Ketil!
On Mon, 8 Nov 1999, Ketil Froyn wrote:
>>Hi everybody,
>>I need a random number but I don't know how I can got one by using
>>/dev/random
>>I try cat /dev/random but It failed
>I don't quite see what this has to do with linux-net, but if you are using
>bash, $RANDOM should do fine...?
Definetely OFFTOPIC, but:
$ rnd=$(dd if=/dev/random bs=1 count=4 2>/dev/null | od -tu4 -An)
Of course, 4 can substituted with 1, 2, 8, etc, depends on what your
system can bear...
Bye.
--
Cats, no less liquid than their shadows, offer no angles to the wind.
--
With best of best regards, Pawel S. Veselov (aka Black Angel)
Web page : http://i.am/BlackAngel | ICQ UIN : 5252265
Internet e-mail : [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]