Ticket #12148: class-phpass.php.diff
| File class-phpass.php.diff, 421 bytes (added by ocean90, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | Index: class-phpass.php |
| 2 | =================================================================== |
| 3 | --- class-phpass.php (revision 12989) |
| 4 | +++ class-phpass.php (working copy) |
| 5 | @@ -55,7 +55,7 @@ |
| 6 | function get_random_bytes($count) |
| 7 | { |
| 8 | $output = ''; |
| 9 | - if (is_readable('/dev/urandom') && |
| 10 | + if (@is_readable('/dev/urandom') && |
| 11 | ($fh = @fopen('/dev/urandom', 'rb'))) { |
| 12 | $output = fread($fh, $count); |
| 13 | fclose($fh); |
