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')))