Bug 18327 – std.random.XorshiftEngine is parameterized by UIntType but only works with uint
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-30T00:19:02Z
Last change time
2018-11-15T15:49:33Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2018-01-30T00:19:02Z
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.
Comment #1 by github-bugzilla — 2018-11-15T15:49:33Z