From 10b4678ee6b307ed44e40204302d2838600bade9 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Fri, 24 Apr 2020 04:53:22 +0100 Subject: [PATCH] Make vgen.pl deterministic --- test_regress/vgen.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_regress/vgen.pl b/test_regress/vgen.pl index 03bd0b6f1..112e083ba 100755 --- a/test_regress/vgen.pl +++ b/test_regress/vgen.pl @@ -322,7 +322,7 @@ sub rnd_op { } my $chooseweight = rnd($totweight); $totweight = 0; - foreach my $opref (values %Ops) { + foreach my $opref (sort {$a->{name} cmp $b->{name}} values %Ops) { if (_rnd_op_ok($opref,$paramref)) { $totweight += $opref->{weight}; if ($chooseweight < $totweight) {