[PATCH] libc++: add NaCl and PNaCl support for std::random_device

JF Bastien jfb at chromium.org
Thu Nov 27 15:34:44 PST 2014


> The purpose of the token is to permit different sources of randomness.
Seeing as how you don't allow anything other than
`nacl_secure_random_init`, perhaps you should just make the default token
be the empty string in the `<random>` header.

That would be a breaking change if we do decide to support other sources of
randomness. What we have now emulates the token it accepts (its POSIX
meaning), so it's the right thing IMO.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141127/31474fe9/attachment.html>


More information about the cfe-commits mailing list