From 2afb4e0f3600a92cf680bc7f3a4799fa30bc9374 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 27 Dec 2018 16:31:36 +0100 Subject: [PATCH] Fix test.pl single mode if password is '0' --- tools/test.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test.pl b/tools/test.pl index 95cb12e0c..a878b9af2 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -115,8 +115,8 @@ sub single $idx++; - my $word = random_numeric_string ($word_len) || ""; - my $salt = random_numeric_string ($salt_len) || ""; + my $word = random_numeric_string ($word_len) // ""; + my $salt = random_numeric_string ($salt_len) // ""; my $hash = module_generate_hash ($word, $salt); @@ -165,7 +165,7 @@ sub passthrough $idx++; - my $salt = random_numeric_string ($salt_len) || ""; + my $salt = random_numeric_string ($salt_len) // ""; my $hash = module_generate_hash ($word, $salt);