From aeebb3c2af26cdc63e82a64ff4ff60ad62b89dbf Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 26 Feb 2010 07:25:10 +0000 Subject: [PATCH] Suppress potential is_readable() warning. Fixes #12148 props ocean90 git-svn-id: https://develop.svn.wordpress.org/trunk@13429 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-phpass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-phpass.php b/wp-includes/class-phpass.php index 2b89a2f5cd..6d77a1cce9 100644 --- a/wp-includes/class-phpass.php +++ b/wp-includes/class-phpass.php @@ -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);