aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-03-19 14:15:34 +0000
committerdrh <drh@noemail.net>2008-03-19 14:15:34 +0000
commit2fa1868fb66e5fe5a18e0285d89b806a1d9e69da (patch)
tree1308b13088bb8b0f3b336c059427bb1047c85fce /src/os_unix.c
parent345331507f739053898f764364b5ce3e1d98fd03 (diff)
downloadsqlite-2fa1868fb66e5fe5a18e0285d89b806a1d9e69da.tar.gz
sqlite-2fa1868fb66e5fe5a18e0285d89b806a1d9e69da.zip
Add a new api sqlite3_randomness() for providing access to SQLite's
internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) FossilOrigin-Name: 15110ea02768bfe977a57eccd6b941a36ebd6b32
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 8bd1a1272..36a218c16 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -2527,7 +2527,7 @@ static int unixGetTempname(sqlite3_vfs *pVfs, int nBuf, char *zBuf){
assert( pVfs->mxPathname==MAX_PATHNAME );
sqlite3_snprintf(nBuf-17, zBuf, "%s/"SQLITE_TEMP_FILE_PREFIX, zDir);
j = strlen(zBuf);
- sqlite3Randomness(15, &zBuf[j]);
+ sqlite3_randomness(15, &zBuf[j]);
for(i=0; i<15; i++, j++){
zBuf[j] = (char)zChars[ ((unsigned char)zBuf[j])%(sizeof(zChars)-1) ];
}