Bug 20723 – std.random.unpredictableSeed: on x86/x86-64 try using RDRAND when there is no arc4random
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2020-04-07T00:23:17Z
Last change time
2020-04-16T18:36:03Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2020-04-07T00:23:17Z
In the past an obstacle to this enhancement was that it would only work with DMD, but LDC version 1.20.0 added support for data directives in DMD-style inline asm.
Comment #1 by dlang-bot — 2020-04-07T00:28:49Z
@n8sh created dlang/phobos pull request #7436 "std.random.unpredictableSeed: on x86/x86-64 try using RDSEED when there is no arc4random" fixing this issue:
- Fix Issue 20723 - std.random.unpredictableSeed: on x86/x86-64 try using RDSEED when there is no arc4random
This code works in both DMD and LDC because LDC version 1.20.0
added support for data directives in DMD-style inline asm.
https://github.com/dlang/phobos/pull/7436
Comment #2 by dlang-bot — 2020-04-16T18:36:03Z
dlang/phobos pull request #7436 "std.random.unpredictableSeed: on x86/x86-64 try using RDRAND when there is no arc4random" was merged into master:
- f6a3678adc8b82352e6770593989141db77d5b2a by Nathan Sashihara:
Fix Issue 20723 - std.random.unpredictableSeed: on x86/x86-64 try using RDRAND when there is no arc4random
This code works in both DMD and LDC because LDC version 1.20.0
added support for data directives in DMD-style inline asm.
https://github.com/dlang/phobos/pull/7436