[Issue 18327] New: std.random.XorshiftEngine is parameterized by UIntType but only works with uint
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 30 00:19:02 UTC 2018
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 at puremagic.com
Reporter: n8sh.secondary at 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.
--
More information about the Digitalmars-d-bugs
mailing list