[Issue 17862] New: std.random.XorshiftEngine.min is wrong when bits == 32
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 27 06:42:34 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17862
Issue ID: 17862
Summary: std.random.XorshiftEngine.min is wrong when bits == 32
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
XorshiftEngine.min is defined as 0 regardless of template parameters
but an XorshiftEngine cannot produce a value of zero if its internal
state has the same number of bits as the output element type.
--
More information about the Digitalmars-d-bugs
mailing list