Skip to content

Commit

Permalink
Suppress warnings from is_readable() when using open_basedir configur…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
rickard2 committed Jan 19, 2015
1 parent a6bb3d8 commit 74738fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CryptoProvider.php
Expand Up @@ -20,7 +20,7 @@ protected function getRandomHexStringFromDevRandom($length) {
static $sources = array('/dev/urandom', '/dev/random');

foreach ($sources as $source) {
if (is_readable($source)) {
if (@is_readable($source)) {
return bin2hex(file_get_contents($source, false, null, -1, $length / 2));
}
}
Expand Down

0 comments on commit 74738fb

Please sign in to comment.