Re: [sqlite] rand_s and Windows 2000

2016-06-17 Thread Richard Hipp
On 6/17/16, Alex Alabuzhev  wrote:
> Hi guys,
>
> SQlite 3.12 and newer uses rand_s in winRandomness() implementation.
>
> rand_s depends  on
> RtlGenRandom 
> 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


[sqlite] rand_s and Windows 2000

2016-06-17 Thread Alex Alabuzhev
Hi guys,

SQlite 3.12 and newer uses rand_s in winRandomness() implementation.

rand_s depends  on
RtlGenRandom  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?

Thanks.

-- 
Best regards,
  Alex
___
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users