diff options
author | mistachkin <mistachkin@noemail.net> | 2017-09-12 23:58:47 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2017-09-12 23:58:47 +0000 |
commit | bf60baa9856b292a09a6de832a9f76640ec1891f (patch) | |
tree | d80b6b50054a2b58be902a3414738a992fe5c20c /src | |
parent | 3ba18adde5d338f68997fcac611a877662fc7518 (diff) | |
download | sqlite-bf60baa9856b292a09a6de832a9f76640ec1891f.tar.gz sqlite-bf60baa9856b292a09a6de832a9f76640ec1891f.zip |
Remove use of the rand_s() function (added by [139081bef9f63c3e]) as it appears to cause issues with some third-party DLLs.
FossilOrigin-Name: 3a2793aa65727cbbf8c4678d478cf8fb02350f19ff98201934a984727368d64d
Diffstat (limited to 'src')
-rw-r--r-- | src/os_win.c | 3 | ||||
-rw-r--r-- | src/sqliteInt.h | 8 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/os_win.c b/src/os_win.c index 7045448fe..f7c835a52 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -5696,9 +5696,6 @@ static int winRandomness(sqlite3_vfs *pVfs, int nBuf, char *zBuf){ EntropyGatherer e; UNUSED_PARAMETER(pVfs); memset(zBuf, 0, nBuf); -#if defined(_MSC_VER) && _MSC_VER>=1400 && !SQLITE_OS_WINCE - rand_s((unsigned int*)zBuf); /* rand_s() is not available with MinGW */ -#endif /* defined(_MSC_VER) && _MSC_VER>=1400 */ e.a = (unsigned char*)zBuf; e.na = nBuf; e.nXor = 0; diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 4ce54cf73..58d64ba2f 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -51,14 +51,6 @@ #endif /* -** Make sure that rand_s() is available on Windows systems with MSVC 2005 -** or higher. -*/ -#if defined(_MSC_VER) && _MSC_VER>=1400 -# define _CRT_RAND_S -#endif - -/* ** Include the header file used to customize the compiler options for MSVC. ** This should be done first so that it can successfully prevent spurious ** compiler warnings due to subsequent content in this file and other files |