Suppress potential is_readable() warning. Fixes #12148 props ocean90

git-svn-id: https://develop.svn.wordpress.org/trunk@13429 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-02-26 07:25:10 +00:00
parent 36da22d334
commit aeebb3c2af
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,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);