[
https://issues.apache.org/jira/browse/MATH-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15254990#comment-15254990
]
Gilles edited comment on MATH-1322 at 4/23/16 1:01 AM:
-------------------------------------------------------
This class is superseded by the new API provided in package {{o.a.c.m.rng}}
which you are welcome to test. See MATH-1335.
was (Author: erans):
This class is superseded by the new API provided in package {{o.a.c.m.rng}}
which you are welcome to test. See MATH-1335.This class is superseded by the
new API provided in package {{o.a.c.m.rng}} which you are welcome to test.
> Negative integer seed for MersenneTwister is not working.
> ---------------------------------------------------------
>
> Key: MATH-1322
> URL: https://issues.apache.org/jira/browse/MATH-1322
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.6
> Reporter: Morikawa Joe
> Labels: patch
> Attachments: MersenneTwister.patch
>
>
> MersenneTwister.setSeed(int seed) has a bug.
> If seed is negative, longMT also becomes negative.
> First 32 bits are filled by 0xFFFFFFFF.
> But it should be positive. First 32 bits should be filled by 0x00000000.
> Ex) Integer -1 is 0xffffffff.
> Long -1 is 0xffffffffffffffff.
> Long 0xffffffff is 4294967295.
> I created simple patch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)