From b4cfc96f2a9d520f0a704126ee6cf259caf16304 Mon Sep 17 00:00:00 2001 From: iz6nnh Date: Sun, 18 Mar 2012 09:16:09 +0100 Subject: [PATCH] Update application/third_party/PasswordHash.php --- application/third_party/PasswordHash.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/third_party/PasswordHash.php b/application/third_party/PasswordHash.php index 12958c7f1..966daea59 100644 --- a/application/third_party/PasswordHash.php +++ b/application/third_party/PasswordHash.php @@ -48,7 +48,10 @@ function PasswordHash($iteration_count_log2, $portable_hashes) function get_random_bytes($count) { $output = ''; - if (is_readable('/dev/urandom') && + if (@is_readable('/dev/urandom') && + #if (is_readable('/dev/urandom') && Whitout "@" some web-hosting go to is_readable + #error because you cannot access directly /dev/* files. It's a security throuble who happen to me + #so I fixed ($fh = @fopen('/dev/urandom', 'rb'))) { $output = fread($fh, $count); fclose($fh);