From 1fffec8e2d9031b65d4c5a7197cfd9f02974e913 Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 25 Feb 2014 23:45:12 +0000 Subject: [PATCH] Update PasswordHash.php Updated line 54 to $output. --- html/includes/PasswordHash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/PasswordHash.php b/html/includes/PasswordHash.php index bdce4439e1..757d47d55a 100644 --- a/html/includes/PasswordHash.php +++ b/html/includes/PasswordHash.php @@ -51,7 +51,7 @@ class PasswordHash { $output = openssl_random_pseudo_bytes($count,$strong); - if(empty($count)) + if(empty($output)) { if (is_readable('/dev/urandom') && ($fh = @fopen('/dev/urandom', 'rb')))