mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 21:48:36 +01:00
Suppress potential is_readable() warning. Fixes #12148 props ocean90
git-svn-id: http://svn.automattic.com/wordpress/trunk@13429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
64d5d9e55c
commit
a208566e67
@ -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