Of the use of unpredictableSeed
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 7 23:57:11 PST 2017
On 2017-03-07 21:15, Nick Sabalausky (Abscissa) wrote:
> And anyone know about OSX? Would OSX use the getentropy the article you
> linked to mentions for OpenBSD?
As far as I can see, there's no "getentropy" on macOS. I see references
to it online, but I cannot find it in any header files.
> Or something else?
I found something called "arc4random" and a couple of related functions [1].
> Or just fallback to /dev/(u)random?
/dev/(u)random does exist on macOS. This is what Apple seems to
recommend [2].
[1]
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/arc4random.3.html
[2]
https://developer.apple.com/library/content/documentation/Security/Conceptual/cryptoservices/RandomNumberGenerationAPIs/RandomNumberGenerationAPIs.html
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list