https://issues.dlang.org/show_bug.cgi?id=17862
--- Comment #2 from github-bugzi...@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 <andra...@users.noreply.github.com> --