diff options
author | drh <drh@noemail.net> | 2015-04-30 12:31:49 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-30 12:31:49 +0000 |
commit | 6a412b8be937d526fc927f4a451f1c33d8c4375d (patch) | |
tree | 8623d693f4135cd0d3fb877613990f7021bde4ff /src/os_unix.c | |
parent | f3cdcdccbeedd4de04d74eb95ecc244eb90e4082 (diff) | |
download | sqlite-6a412b8be937d526fc927f4a451f1c33d8c4375d.tar.gz sqlite-6a412b8be937d526fc927f4a451f1c33d8c4375d.zip |
Fix signed/unsigned comparison compiler warnings. Add the
SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded
identically on every run, for testing purposes.
FossilOrigin-Name: 93ce2bca701efc67aeb517c4d641bde71332e8a0
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 74710a8b7..9ec100323 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -6135,7 +6135,7 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){ */ memset(zBuf, 0, nBuf); randomnessPid = osGetpid(0); -#if !defined(SQLITE_TEST) +#if !defined(SQLITE_TEST) && !defined(SQLITE_OMIT_RANDOMNESS) { int fd, got; fd = robust_open("/dev/urandom", O_RDONLY, 0); |