From 2162e411e91846f770743add4440d92c6a9b2178 Mon Sep 17 00:00:00 2001 From: jsteube Date: Wed, 20 Feb 2019 13:45:02 +0100 Subject: [PATCH] Ensure that len_min cannot be larger than len_max, which can happend if len_max was forced to reduced in some special conditions --- tools/test.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/test.pl b/tools/test.pl index f822c1541..0d098f78e 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -338,6 +338,8 @@ sub init_db_word_rand $len_max = ($len_max >= 31) ? 31 : $len_max; } + + $len_min = ($len_min < $len_max) ? $len_min : $len_max; } my @pool; @@ -388,6 +390,8 @@ sub init_db_salt_rand # salt_max = SALT_MAX_OLD; $len_max = ($len_max >= 51) ? 51 : $len_max; + + $len_min = ($len_min < $len_max) ? $len_min : $len_max; } my @pool;