[cfe-dev] [libcxx] random_device for Windows needs more storage
Yaron Keren
yaron.keren at gmail.com
Tue Oct 8 09:38:09 PDT 2013
Thanks, Sebastian, David Chisnall corrected me.
random_device() was finally implemented based on rand_s() from MSVCRT.
Yaron
2013/10/8 Sebastian Redl <sebastian.redl at getdesigned.at>
> On 2013-10-07 22:20, Yaron Keren wrote:
>
> The actual data type is typedef ULONG_PTR HCRYPTPROV;
> I found two conflicting descriptions in microsoft.com for ULONG_PTR:
>
> The first
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx says
> it's always 64 bits:
>
> #if defined(_WIN64)
> typedef unsigned __int64 ULONG_PTR;
> #else
> typedef unsigned long ULONG_PTR;
> #endif
>
>
> unsigned long is always 32 bits on Microsoft's compiler.
>
> Sebastian
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131008/235e2778/attachment.html>
More information about the cfe-dev
mailing list