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:
parent
36da22d334
commit
aeebb3c2af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user