Permalink
Browse files

Merge pull request #2 from montania/master

Suppress warnings from is_readable() when using open_basedir configuration
  • Loading branch information...
2 parents a6bb3d8 + 74738fb commit b9313390bb535ff9780067280f18ac96bbeadd39 @deceze committed Jan 20, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 CryptoProvider.php
View
@@ -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));
}
}

0 comments on commit b931339

Please sign in to comment.