Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/crypt-usage' of https://github.com/ezimuel/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 25, 2012
13 parents 8ee5274 + 72c713c + 8ab0513 + 91eef93 + fce24bf + c98293e + ec0fa7a + 2480ecd + 6cbdeb6 + 0199841 + d0ceadd + b337f0c + 6ab4356 commit 8155a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AbstractWord.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Zend\Captcha;

use Zend\Session\Container;
use Zend\Math\Rand;

/**
* AbstractWord-based captcha adapter
Expand Down Expand Up @@ -350,7 +351,7 @@ public function generate()
*/
protected function generateRandomId()
{
return md5(mt_rand(0, 1000) . microtime(true));
return md5(Rand::getBytes(32));
}

/**
Expand Down

0 comments on commit 8155a5c

Please sign in to comment.