www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 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