zendframework/zf2 — pull request #1480 by ezimuel (2012-06-12 06:42:22+00:00)
Title: Hotfix random integer generator rand() in Zend\Math\Math

Fixed the integer random generator. The previous implementation didn't provide a uniform distribution (because the usage of %). See: http://www.php.net/manual/en/function.openssl-random-pseudo-bytes.php#104322
I also added a new test case for the randomness using an idea present in the PHP-CryptLib project.
I added a note in the Zend\Crypt documentation for thanks the PHP-CryptLib project.