Skip to content

Commit

Permalink
* Ignore deprecation message for mcrypt_create_iv for PHP7.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
RobThree committed Jun 5, 2018
1 parent 0ac68f6 commit 5de91c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Providers/Rng/MCryptRNGProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function __construct($source = MCRYPT_DEV_URANDOM) {
}

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;
Expand Down

0 comments on commit 5de91c2

Please sign in to comment.