[Issue 17862] std.random.XorshiftEngine.min is wrong when bits == 32
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 23 00:28:52 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17862
--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/fa9215198226a1377fcb06ab2051319e3710b72a
Fix Issue 17862 - std.random.XorshiftEngine.min is wrong when bits == 32
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.
https://github.com/dlang/phobos/commit/cc256d8dc93ffe3d1e5149b3438b60aa8d01cd87
Merge pull request #5746 from n8sh/xorshift-fix
Fix Issue 17862 - std.random.XorshiftEngine.min is wrong when bits == 32
merged-on-behalf-of: Andrei Alexandrescu <andralex at users.noreply.github.com>
--
More information about the Digitalmars-d-bugs
mailing list