Bug 18595 – std.random: add unpredictableSeedOf!UIntType for non-uint unpredictableSeed
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-12T09:35:27Z
Last change time
2018-11-14T11:59:27Z
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2018-03-12T09:35:27Z
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`.
Comment #1 by n8sh.secondary — 2018-03-31T03:43:22Z