diff options
-rw-r--r-- | include/passwordhash.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/passwordhash.class.php b/include/passwordhash.class.php index 12958c7f1..84447b277 100644 --- a/include/passwordhash.class.php +++ b/include/passwordhash.class.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); |