php-openid icon indicating copy to clipboard operation
php-openid copied to clipboard

Auth/OpenID/CryptUtil.php : replace mt_rand() by something better

Open Wikinaut opened this issue 11 years ago • 0 comments

  • http://www.php.net/manual/en/function.mt-rand.php
  • http://www.openwall.com/php_mt_seed/

Because mt_rand only uses 32-bit seeds, the use is deprecated. http://www.php.net/manual/en/function.mt-rand.php recommends the use of openssl_random_pseudo_bytes() .

Wikinaut avatar Dec 22 '13 21:12 Wikinaut