[Issue 17847] New: Properly sanitize seeds for Park–Miller engines

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 21 18:16:35 UTC 2017


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 at puremagic.com
          Reporter: natesash at 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.

--


More information about the Digitalmars-d-bugs mailing list