digitalmars.D.bugs - [Issue 18327] New: std.random.XorshiftEngine is parameterized by
- d-bugmail puremagic.com (20/20) Jan 29 2018 https://issues.dlang.org/show_bug.cgi?id=18327
https://issues.dlang.org/show_bug.cgi?id=18327 Issue ID: 18327 Summary: std.random.XorshiftEngine is parameterized by UIntType but only works with uint Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: normal Priority: P3 Component: phobos Assignee: nobody puremagic.com Reporter: n8sh.secondary hotmail.com The documentation says that std.random.XorshiftEngine uses a 32-bit algorithm but XorshiftEngine is parameterized by UIntType and permits non-uint UIntType but does not work correctly with them. The solution is to either make non-uint a compilation failure or to make XorshiftEngine support other UIntType. --
Jan 29 2018