Gossamer Forum
Home : General : Perl Programming :

rand() with time. is this secure?

Quote Reply
rand() with time. is this secure?
How many possibilities will I have to get the same random number with:

Code:


while ($x < 10000000)

{

$x++;

$rand = int(rand(time ^ $$))

...


I'm not completely sure about time function... :)

Ideas, suggestions??

Last edited by:

robyone: Dec 16, 2003, 12:22 AM