diff --git a/application/third_party/PasswordHash.php b/application/third_party/PasswordHash.php index 12958c7f..84447b27 100644 --- a/application/third_party/PasswordHash.php +++ b/application/third_party/PasswordHash.php @@ -48,7 +48,7 @@ class PasswordHash { function get_random_bytes($count) { $output = ''; - if (is_readable('/dev/urandom') && + if (@is_readable('/dev/urandom') && ($fh = @fopen('/dev/urandom', 'rb'))) { $output = fread($fh, $count); fclose($fh);