1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fixes to the PRNG_SEED pragma idea.

FossilOrigin-Name: c71098409c98af8360f8f28b9238a12ec764018a5782e8ff03fdf5db54031d6e
This commit is contained in:
drh
2019-08-02 21:03:24 +00:00
parent ade54d68ee
commit e6e96b1b45
5 changed files with 18 additions and 13 deletions

View File

@ -211,6 +211,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *aData, size_t nByte){
if( mxCb>0 ){
sqlite3_progress_handler(db, 10, progress_handler, 0);
}
#ifdef SQLITE_TESTCTRL_PRNG_SEED
sqlite3_test_control(SQLITE_TESTCTRL_PRNG_SEED, 0);
sqlite3_randomness(0,0);
#endif
for(i=0; i<sizeof(azSql)/sizeof(azSql[0]); i++){
if( eVerbosity>=1 ){
printf("%s\n", azSql[i]);