https://issues.dlang.org/show_bug.cgi?id=21609
Issue ID: 21609
Summary: LinearCongruentialEngine fails for m = 0
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
std.random.LinearCongruentialEngine has an undocumented behaviour that allows
for m = 0 when UIntType == uint, treating it as if it were 2^32. This special
case is untested, and currently (as of DMD 2.095) produces a division by zero
error.
example:
```
alias MSVC = LinearCongruentialEngine!(uint, 214013, 2531011, 0);
```
--