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