diff options
author | drh <drh@noemail.net> | 2001-09-23 19:46:51 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2001-09-23 19:46:51 +0000 |
commit | 90bfcdace37be8d7029c42abb778988b2cfcc439 (patch) | |
tree | 021a8c424c5bed44d33330945c01e53a957712c1 /src/sqliteInt.h | |
parent | ecdc7530dda7a793c96df4010313792de4a6390c (diff) | |
download | sqlite-90bfcdace37be8d7029c42abb778988b2cfcc439.tar.gz sqlite-90bfcdace37be8d7029c42abb778988b2cfcc439.zip |
Additional test cases with locking fixes. Also, make the code thread-safe. (CVS 262)
FossilOrigin-Name: bd7d6a64afa03cc64f6537f828d6c94975bf5f02
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index a8d2f81db..1a5f05aab 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.53 2001/09/22 18:12:10 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.54 2001/09/23 19:46:52 drh Exp $ */ #include "sqlite.h" #include "hash.h" @@ -148,6 +148,12 @@ struct sqlite { int (*xBusyCallback)(void *,const char*,int); /* The busy callback */ Hash tblHash; /* All tables indexed by name */ Hash idxHash; /* All (named) indices indexed by name */ + struct { /* State of the RC4 random number generator */ + int isInit; /* True if initialized */ + int i, j; /* State variables */ + int s[256]; /* State variables */ + } prng; + int nextRowid; /* Next generated rowID */ }; /* @@ -451,9 +457,8 @@ void sqliteExprResolveInSelect(Parse*, Expr*); int sqliteExprAnalyzeAggregates(Parse*, Expr*); void sqliteParseInfoReset(Parse*); Vdbe *sqliteGetVdbe(Parse*); -int sqliteRandomByte(void); -int sqliteRandomInteger(void); -void sqliteRandomName(char*,char*); +int sqliteRandomByte(sqlite*); +int sqliteRandomInteger(sqlite*); void sqliteBeginTransaction(Parse*); void sqliteCommitTransaction(Parse*); void sqliteRollbackTransaction(Parse*); |