Skip to content
Permalink
Browse files

PHP 7.x support

  • Loading branch information...
Alexander Rein
Alexander Rein committed Apr 17, 2019
1 parent 5ddb9b2 commit e82f96102c14e5217bac7a49046560237b1b5ccf
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/class.PasswordGenerator.php
@@ -113,7 +113,7 @@ public static function getRandomInts($numInts)
if ($numInts <= 0) {
return $ints;
}
$rawBinary = mcrypt_create_iv($numInts * PHP_INT_SIZE, MCRYPT_DEV_URANDOM);
$rawBinary = random_bytes($numInts * PHP_INT_SIZE);
for($i = 0; $i < $numInts; ++$i)
{
$thisInt = 0;

0 comments on commit e82f961

Please sign in to comment.
You can’t perform that action at this time.