From 958d89872adcb3e13da815e70bc83447063a05e7 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 3 Jan 2019 13:41:54 +0100 Subject: [PATCH] Remove old code --- tools/test.pl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/test.pl b/tools/test.pl index 338ce0498..673ae7547 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -75,15 +75,13 @@ sub single my $db_prev; - my $giveup1 = 0; - my $giveup2 = 0; + my $giveup = 0; my $idx = 0; while ($idx < $single_outputs) { - last if ($giveup1++ == $giveup_at); - last if ($giveup2++ == $giveup_at); + last if ($giveup++ == $giveup_at); my $word_len = 0; @@ -109,7 +107,7 @@ sub single } else { - $salt_len = $db_salt_len->[$giveup2 % $single_outputs]; + $salt_len = $db_salt_len->[$giveup % $single_outputs]; } }