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:
parent
3af1b41542
commit
70a0a422b7
6 changed files with 2 additions and 7 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue