digitalmars.D.bugs - [Issue 17847]
- d-bugmail puremagic.com (17/17) Sep 21 2017 https://issues.dlang.org/show_bug.cgi?id=17847
https://issues.dlang.org/show_bug.cgi?id=17847 Issue ID: 17847 Summary: Properly sanitize seeds for Park–Miller engines Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: natesash gmail.com 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. --
Sep 21 2017