Bug 17847 – Properly sanitize seeds for Park–Miller engines
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-09-21T18:16:35Z
Last change time
2017-10-16T09:58:06Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by natesash — 2017-09-21T18:16:35Z
The current check is broken because it checks the seed before taking the modulus. Additionally, as in XorshiftEngine, sanitizing the seed would be more useful than throwing an exception.