www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18595] New: std.random: add unpredictableSeedOf!UIntType for

https://issues.dlang.org/show_bug.cgi?id=18595

          Issue ID: 18595
           Summary: std.random: add unpredictableSeedOf!UIntType for
                    non-uint unpredictableSeed
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

It would be convenient if `std.random.unpredictableSeed` could be used to
produce `ulong`. To avoid any backwards compatibility issues I propose calling
the new method `unpredictableSeedOf!UIntType` and aliasing `unpredictableSeed`
to `unpredictableSeed!uint`.

--
Mar 12 2018