Merge pull request #140 from max-kovpak/patch-1

Make it more unique
This commit is contained in:
Grégoire Passault 2015-08-25 16:06:15 +02:00
commit 0f5e9870f1
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class CaptchaGenerator
// Returns the image generation URL
if ($options['as_url']) {
return $this->router->generate('gregwar_captcha.generate_captcha',
array('key' => $options['session_key'], 'n' => time()));
array('key' => $options['session_key'], 'n' => md5(microtime(true).mt_rand())));
}
return 'data:image/jpeg;base64,' . base64_encode($this->generate($options));