On 6/17/16, Alex Alabuzhev <alabuz...@gmail.com> wrote: > Hi guys, > > SQlite 3.12 and newer uses rand_s in winRandomness() implementation. > > rand_s depends <https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx> on > RtlGenRandom <https://msdn.microsoft.com/library/windows/desktop/aa387694> > API > (aka Advapi32.dll::SystemFunction036), which is only available in Windows > XP and later. > > Could you please consider using rand() instead, or, say, using rand_s() > only if SystemFunction036 is present in advapi32.dll, or any other > apprropriate way to remove this dependency? >
The use of rand_s() is already predicated on #if defined(_MSC_VER) && _MSC_VER>=1400 && !SQLITE_OS_WINCE Can you suggest an additional term or terms for this #if statement that would cause rand_s() to be omitted from the obsolete Windows systems you are targeting? -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users