Bug#684085: libmath-random-mt-perl: rand() does not handle arguments and irand() handle an argument wrongly

Salvatore Bonaccorso carnil at debian.org
Mon Aug 6 20:21:24 UTC 2012


Source: libmath-random-mt-perl
Version: 1.15-1
Severity: important
Tags: upstream

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Control: tags -1 + fixed-upstream
Control: forwarded -1 https://rt.cpan.org/Public/Bug/Display.html?id=78200

Hi

[Setting the Severity to important as the module does not behave as
documented in manpage and calculates thus 'wrong' values, but we can
downgrade this to normal if needed]

libmath-random-mt-perl 1.15-1 introduced wrong handling of arguments
for rand() and irand(). rand() does not respect the argument passed
(but should), as if rand($number) is set, the PRNG outputs numbers in
[0,$number). 

Wrongly it does it with irand().

This is fixed upstream in 1.16-1, but introduce a change also for the
testsuite to switch to Test::More and Test::Number::Delta.

p.s.: I can extract the change and ask release-team for an unblock
      request for wheezy.

Regards,
Salvatore

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJQICc/AAoJEHidbwV/2GP+RnoP/2hYD8L0mAbW0TYh7bMHzzG+
cXwdd6C3vuLNkxngPd6Oyx8wEdZ4TRmuhb2JcJ/KWp28FOL33dQ5kNNuWQ6BTkbS
X6amNup2i4fe2TpuZV5O4L7+2/ncoVHpYAxPhtdFbCRVIUy7joMTSE2BA4dsjYS2
We/bVeufrcGDoUZpFjNmBA3AnzguTVsDAeX2yvLq/Qj6MEWU0lTFSCp0JZdOsvYa
FLC6esH4nAwu+FxNjxTtI+Y4gf+GIExEWcXnBwaZlB8FerGKy2LdpKM64qquTatv
OEQFTKf0z7+vfNRlgi9kHvQwsta/kisDydbtN1FHIcxPhaZFTv+nwGkobGKe+DhZ
1IKWBhYjiJ/RvRlGOSypou+IWHuDKZnT3e4QoNpquT1Q9wlQwF7ozKZL9+LvcMDE
9WsZutv4KZn6S/TJw5aq6o4ZZNctevMDO0IyXx3zO1bYv3mvNaWfJLY+XcwoHD7j
7GoUiLdiOXA6uIs5QZtUxwrET1MPlW0LPbRLeao7IZMivfg4HkNb2qgqgJhsVcyF
YsFbCDueGuly5vUto2okHcmPhf3NwlYGjkU/mdPERb0YF9eCyehB3yi7Nr3g1w4I
bAfsW391bYHdKeDc2AteDvMqMYnG3BjzikApus1jIGLus5b0SiiYxVktFsQ93X8G
pW6z38MEbKeAicMvwNaG
=rbfr
-----END PGP SIGNATURE-----



More information about the pkg-perl-maintainers mailing list