1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Remove a small amount of unnecessary #ifdeffery from random.c.

FossilOrigin-Name: 2b9340c8684bc382391e02813e960b3166f24daa
This commit is contained in:
drh
2014-10-27 20:14:02 +00:00
parent df9c093e2c
commit d61a18a9f1
3 changed files with 9 additions and 11 deletions

View File

@@ -57,14 +57,12 @@ void sqlite3_randomness(int N, void *pBuf){
#if SQLITE_THREADSAFE
mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_PRNG);
sqlite3_mutex_enter(mutex);
#endif
sqlite3_mutex_enter(mutex);
if( N<=0 || pBuf==0 ){
wsdPrng.isInit = 0;
#if SQLITE_THREADSAFE
sqlite3_mutex_leave(mutex);
#endif
return;
}