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: [email protected]
Reporter: [email protected]
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.
--