in reply to RE (tilly) 1: a random sort of list
in thread "a random sort of list"
As I understand it, you don't have to call srand because Perl seeds it to time for you, but if you are writing a script where you want to use rand for some attempt* at security then you should re-seed it yourself with something more obscure. I usually use some combination of time and place, er, pid. Although obviously you don't want to just xor the two.
*I say attempt because in the end nothing is trully secure and I don't want to start a debate on it.
|
---|
Replies are listed 'Best First'. | |
---|---|
RE (tilly) 3: a random sort of list
by tilly (Archbishop) on Sep 08, 2000 at 21:23 UTC | |
Perl's auto srand() RE: a random sort of list
by tye (Sage) on Sep 08, 2000 at 23:29 UTC |
In Section
Seekers of Perl Wisdom