[cfe-dev] [libcxx] random_device for Windows needs more storage

Nico Rieck nico.rieck at gmail.com
Mon Oct 7 13:40:29 PDT 2013


On 07.10.2013 20:57, Yaron Keren wrote:
> I'm trying to implement random_device for Windows using the CryptGenRandom
> API, as in the attached non-working code.

There's no need for CryptGenRandom and its overhead here. RtlGenRandom 
is just fine for random_device. MSVCRT does the same.

-Nico



More information about the cfe-dev mailing list