Bug 17862 – std.random.XorshiftEngine.min is wrong when bits == 32
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-09-27T06:42:34Z
Last change time
2018-03-23T00:28:52Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2017-09-27T06:42:34Z
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.
Comment #1 by razvan.nitu1305 — 2017-10-03T06:05:05Z