mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-21 15:31:51 +00:00
* Ignore deprecation message for mcrypt_create_iv for PHP7.1+
This commit is contained in:
@@ -11,7 +11,7 @@ class MCryptRNGProvider implements IRNGProvider
|
||||
}
|
||||
|
||||
public function getRandomBytes($bytecount) {
|
||||
$result = mcrypt_create_iv($bytecount, $this->source);
|
||||
$result = @mcrypt_create_iv($bytecount, $this->source);
|
||||
if ($result === false)
|
||||
throw new \RNGException('mcrypt_create_iv returned an invalid value');
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user