[cfe-dev] [libcxx] random_device for Windows needs more storage
Nico Rieck
nico.rieck at gmail.com
Mon Oct 7 15:02:31 PDT 2013
On 07.10.2013 23:37, Aaron Ballman wrote:
> I don't believe we should be using this function. Technically, the
> documentation states this is available for use with the operating
> systems listed in the Requirements section, which only lists XP and
> Server 2003. Relying on this outside of those platforms is not only
> bad form, but to boot, in order to use them, you need to dynamically
> load SystemFunction036 from AdvApi32.dll.
For newer SDKs, when targeting XP and up (_WIN32_WINNT >= 0x0501),
ntsecapi.h defines it as a macro to SystemFunction036 so it works
without any additional steps. And the documentation lists the minimum
required OS version.
-Nico
More information about the cfe-dev
mailing list