aboutsummaryrefslogtreecommitdiff
path: root/src/random.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-12-08 18:19:17 +0000
committerdrh <drh@noemail.net>2008-12-08 18:19:17 +0000
commit1875f7a3dbbcc252804c60d92a7abbc4888b4996 (patch)
tree90da5a754e84e42c70ecd24247c02306ad4d429f /src/random.c
parent128255fce671bf3c19feb569f4b87e7e6003da24 (diff)
downloadsqlite-1875f7a3dbbcc252804c60d92a7abbc4888b4996.tar.gz
sqlite-1875f7a3dbbcc252804c60d92a7abbc4888b4996.zip
The amalgamation now compiles cleanly on GCC with options
-pedantic-errors -Wno-long-long. (CVS 5991) FossilOrigin-Name: 73c7302c5f76a2f61ecd75f8bda69bb500d3119c
Diffstat (limited to 'src/random.c')
-rw-r--r--src/random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/random.c b/src/random.c
index 7fe42a557..eb3ec1958 100644
--- a/src/random.c
+++ b/src/random.c
@@ -15,7 +15,7 @@
** Random numbers are used by some of the database backends in order
** to generate random integer keys for tables or random filenames.
**
-** $Id: random.c,v 1.27 2008/10/07 15:25:48 drh Exp $
+** $Id: random.c,v 1.28 2008/12/08 18:19:18 drh Exp $
*/
#include "sqliteInt.h"
@@ -27,7 +27,7 @@ static SQLITE_WSD struct sqlite3PrngType {
unsigned char isInit; /* True if initialized */
unsigned char i, j; /* State variables */
unsigned char s[256]; /* State variables */
-} sqlite3Prng = { 0, };
+} sqlite3Prng;
/*
** Get a single 8-bit random value from the RC4 PRNG. The Mutex
@@ -126,7 +126,7 @@ void sqlite3_randomness(int N, void *pBuf){
** The sqlite3_test_control() interface calls these routines to
** control the PRNG.
*/
-static SQLITE_WSD struct sqlite3PrngType sqlite3SavedPrng = { 0, };
+static SQLITE_WSD struct sqlite3PrngType sqlite3SavedPrng;
void sqlite3PrngSaveState(void){
memcpy(
&GLOBAL(struct sqlite3PrngType, sqlite3SavedPrng),