Skip Menu |

This queue is for tickets about the Math-String CPAN distribution.

Report information
The Basics
Id: 95621
Status: resolved
Priority: 0/
Queue: Math-String

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.28
Fixed in: 1.29



Subject: Hash randomization problems?
The pass/fail pattern as visible in http://matrix.cpantesters.org/?dist=Math-String suggests that the test suite and/or the module has problems with the hash randomization implementation invented between perl 5.17.0 and 5.18.0. Regards, Slaven
From: fraserbn [...] gmail.com
On Tue May 13 15:32:02 2014, SREZIC wrote: Show quoted text
> The pass/fail pattern as visible in > http://matrix.cpantesters.org/?dist=Math-String suggests that the test > suite and/or the module has problems with the hash randomization > implementation invented between perl 5.17.0 and 5.18.0. > > Regards, > Slaven
The diagnostic is spot on; here's a patch to fix the issue.
Subject: 0001-Hash-randomization-fix.patch
From 10fe5f2f58d1ee9a8720c6dd8966b328f17fdd36 Mon Sep 17 00:00:00 2001 From: Brian Fraser <fraserbn@gmail.com> Date: Sun, 27 Jul 2014 13:18:26 +0200 Subject: [PATCH] Hash randomization fix --- lib/Math/String/Charset/Grouped.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Math/String/Charset/Grouped.pm b/lib/Math/String/Charset/Grouped.pm index 618effd..855c76e 100644 --- a/lib/Math/String/Charset/Grouped.pm +++ b/lib/Math/String/Charset/Grouped.pm @@ -187,7 +187,7 @@ sub dump my $txt = "type: GROUPED\n"; - foreach my $set (keys %{$self->{_sets}}) + foreach my $set (sort { $b<=>$a } keys %{$self->{_sets}}) { $txt .= " $set => ". $self->{_sets}->{$set}->dump(' '); } -- 1.7.12.4 (Apple Git-37)