Removed all instances of srand. This is called implicitily by rand and be dangerous if called mulitple times by the same process.

This commit is contained in:
Kaleb Murphy 2008-11-10 21:53:30 +00:00
parent 3af1b41542
commit 70a0a422b7
6 changed files with 2 additions and 7 deletions

View file

@ -73,7 +73,6 @@ sub addFileFromCaptcha {
my $self = shift;
my $error = "";
my $challenge;
srand;
$challenge.= ('A'..'Z')[rand(26)] foreach (1..6);
my $filename = "captcha.".$self->session->id->generate().".gif";
my $image = $graphicsPackage->new();