Hello,
Doesn't /dev/random produce pseudo-random numbers also? What makes
reading from it better than using perl's rand or C's rand?
Aziz,,,
In article <[EMAIL PROTECTED]>, "smoot"
<[EMAIL PROTECTED]> wrote:
>> "." <[EMAIL PROTECTED]> said:
>
>> Another thing that I notice the llama book fails to mention is random
>> number generation. Is this possible in Perl? (More specifically in a
>> CGI script.)
>
> The rand() function will generate pseudo random numbers. If you need
> better random numbers, then reading in /dev/random on a Unix system
> which supports it, is a good choice. It is a source of random bits,
> provided it is seeded correctly. Unless you are doing serious
> cryptography, rand() is probably sufficient for most uses.
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]