13 Sep
2017
13 Sep
'17
11:28 p.m.
On 14/09/2017 10:21, Edward Diener wrote:
On 9/12/2017 9:27 AM, degski wrote:
Is not rand_s VC++ specific ? There really are other compilers on Windows other than VC++ ( I can test clang, gcc, and Intel for Windows).
rand_s is MSVCRT specific. But AFAIK gcc and clang both use MSVCRT on Windows anyway, so it should work (though might depend on the age of the CRT used). If in doubt, you could use RtlGenRandom instead, as Peter Dimov suggested, since this is the OS-level API.