in reply to crypted form
or simply not using srand, since the default seed now is something better than time().srand( (time() ^ ($$ + ($$ << 15)) );
or better yet, replace the for loop with:$random=join("", 'a'..'z','A'..'Z','0'..'9','.','/');
@r=('a'..'z','A'..'Z','0'..'9','.','/'); $salt=$r[rand(@r)].$r[rand(@r)];
|
|---|