aboutsummaryrefslogtreecommitdiff
path: root/src/random.c
Commit message (Collapse)AuthorAge
* Remove unnecessary tabs in the ChaCha20 implementation.drh2022-11-10
| | | | | [forum:/forumpost/0cdce5db8c|Forum post 0cdce5db8c]. FossilOrigin-Name: b7179efbdb2bdc878acec0abfe272821f7e0d7d9e5ef06cd7fd796ef295e54ab
* Fix obsolete comments. Add new comments. Fix non-standard spacing.drh2022-08-16
| | | FossilOrigin-Name: a0d224c6a69941dad1f2b35edcc7ddee343b99eae2aeed74043461f3e97ef5b4
* Fix an off-by-one error in the ChaCha20 initialization code.drh2022-08-16
| | | FossilOrigin-Name: 72e220eed446ea9a02a6ef03e09a01bcb8bbca1f3b32d2e0bf52a17d9722e2f0
* Replace the RC4-based PRNG with one based on ChaCha20. 3x faster.drh2022-08-16
| | | FossilOrigin-Name: 084d8776fa95c75440530028171c56547a341c9a952ba2f29bb533b538603c78
* Add NULL checks on all sqlite3_vfs_find(0) calls. This is not strictlydrh2021-06-15
| | | | | | | necessary. There are no vulnerabilities here. However, adding these checks avoids unnecessary static analyzer complaints. [forum:/forumpost/ce1193be15|Forum post ce1193be15]. FossilOrigin-Name: 272a15b9f418fb0b31a9808f7c42c20cf52318035ff98935d8e8519634357e8d
* Rename the SQLITE_OMIT_BUILTIN_TEST compile-time option to SQLITE_UNTESTABLE.drh2016-12-07
| | | FossilOrigin-Name: f360818737e73ee4f944685a547abc8f14f47819
* Remove a small amount of unnecessary #ifdeffery from random.c.drh2014-10-27
| | | FossilOrigin-Name: 2b9340c8684bc382391e02813e960b3166f24daa
* Fix compilation issue with MSVC due to a misplaced variable declaration.mistachkin2014-10-27
| | | FossilOrigin-Name: 9588b345d09daaa49d24d7fb6cab732e64e5474e
* Fix two problems. Tests now passing.drh2014-10-24
| | | FossilOrigin-Name: 1c220b806d56e163842e17038c3331f71861bd9c
* Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work indrh2014-10-24
| | | | | progress and is not yet completely functional. FossilOrigin-Name: c297a84bc678f81ffc0aa9139ab73f0ca87c1971
* Enhance sqlite3_randomness(N,P) such that it resets the internal PRNGdrh2014-01-01
| | | | | | if N is less than 1. Subsequent calls to sqlite3_randomness() will reinitialize the internal PRNG by calling the xRandomness() method of the default VFS. FossilOrigin-Name: a221aa82bb5496885fd0bf76e4601443799511de
* Refactor the sqlite3_randomness() implementation for improved performance.drh2013-08-21
| | | FossilOrigin-Name: 4144dffb57b5ed791d7a6d2f26fab5e7dc77fbd1
* Remove the obsolete "$Id:$" RCS identifier strings from the source code.drh2009-11-10
| | | FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c
* Never use strlen(). Use our own internal sqlite3Strlen30() which isdrh2008-12-10
| | | | | | guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
* The amalgamation now compiles cleanly on GCC with optionsdrh2008-12-08
| | | | | -pedantic-errors -Wno-long-long. (CVS 5991) FossilOrigin-Name: 73c7302c5f76a2f61ecd75f8bda69bb500d3119c
* Remove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0drh2008-10-07
| | | | | | option always removes all mutex code. For application-defined mutexes only, use SQLITE_THREADSAFE=1 with SQLITE_MUTEX_NOOP=1. Ticket #3421. (CVS 5779) FossilOrigin-Name: 02a12eb1cfe9307c66556105a1a99d657cc01ab5
* Continuing work on adding full support for the SQLITE_OMIT_WSD drh2008-09-02
| | | | | compile-time option. (CVS 5658) FossilOrigin-Name: ef26ea5c46d3915d206f8ff7f82a24f4c8955f1f
* Bug fixes: Plug a memory leak introduced by the previous check-in. Getdrh2008-06-19
| | | | | the amalgamation to the point where it will compile. (CVS 5241) FossilOrigin-Name: 005f8eaef5ae05cef5c76f3afe299eaa2cf8af2f
* Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration ↵danielk19772008-06-18
| | | | | modes. (CVS 5234) FossilOrigin-Name: 5059644c4bc5f6679afd939e0bc26080f42a9918
* Add a completely new testing system for the Bitvec object. The newdrh2008-03-21
| | | | | | | testing system uses sqlite3_test_control() instead of unpublished APIs. Now provides 100% condition/decision coverage. Obscure bugs in Bitvec found and fixed as a result of the enhanced coverage. (CVS 4902) FossilOrigin-Name: 2498d3ea36ecab6d9c0f04ef1c49d76a7a215a4f
* Add a new api sqlite3_randomness() for providing access to SQLite'sdrh2008-03-19
| | | | | internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) FossilOrigin-Name: 15110ea02768bfe977a57eccd6b941a36ebd6b32
* Get all tests running without memory leaks. (CVS 4714)drh2008-01-16
| | | FossilOrigin-Name: 5807921f5a6e2e08f2c9e79aa91d8c587d64de74
* Remove the obsolete static mutexes. Use only the lastest static mutex code. ↵drh2007-08-21
| | | | | (CVS 4259) FossilOrigin-Name: 6225cd461cdd2132eeb480aa4deb8986b7f63c15
* Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)drh2007-08-21
| | | FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873
* Work toward multithreading support. Currently crashes quickly on a test. ↵drh2007-08-20
| | | | | (CVS 4253) FossilOrigin-Name: 1315bd8e125602275fb718780f9b2730bd37f6ab
* Begin migration to using sqlite3_vfs interface. (CVS 4240)danielk19772007-08-17
| | | FossilOrigin-Name: af3e3c7acdc67013dd733effebe981620d922dd1
* Suppress compiler warnings. Fix a bug in IO error detection on windows. ↵drh2007-01-05
| | | | | (CVS 3564) FossilOrigin-Name: daed2bab00ea3952d2d4e5182ca07653b9d80ac2
* Change the OS interface layer to use traditional direct function calldrh2006-01-06
| | | | | | implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) FossilOrigin-Name: 2529c2e11fa1d345ec61f647e4f6fae20a7133d6
* Restructure the OS interface yet again. This time make the OsFile objectdrh2005-11-30
| | | | | | | a virtual base class which is subclassed for unix, windows, and the crash test simulator. Add the new file "os.c" for common os layer code. Move all OS-specific routines into the sqlite3Os structure. (CVS 2795) FossilOrigin-Name: bd8740d1aecba69e1b5d64d43db07e8ad8841f07
* Update older opcode names to be more meaningful in light of the latestdrh2005-06-12
| | | | | code design. (CVS 2506) FossilOrigin-Name: 36f2da1f8d8d434f861ecad55c9d86549751c954
* Change lots of internal symbols from sqliteXXX to sqlite3XXX so that thedanielk19772004-05-08
| | | | | | library links again. It doesn't work yet, due to changes in the btree layer calling convention. (CVS 1324) FossilOrigin-Name: 8af6474c49263ae26216dff9465b33f76b500cf4
* Refactor the interface to the randomness generator. (CVS 1224)drh2004-02-11
| | | FossilOrigin-Name: f2bdccf4bb2f796aafb64c33e55f62a1794d750c
* Change the name of the sanity_check PRAGMA to "integrity_check" and makedrh2002-02-19
| | | | | it available on all compiles. (CVS 381) FossilOrigin-Name: c6e9048e66c8d8e2d5f6c62aa724eef3e9d9f572
* Added the last_insert_rowid API function. Improved documentation ofdrh2002-01-16
| | | | | the random ROWID algorithm. (CVS 349) FossilOrigin-Name: f74d61aaf3fec06cde2c4a6f1465f86ac9058ad2
* Fix the locking protocol. (CVS 280)drh2001-10-09
| | | FossilOrigin-Name: 484b82d8a1c84f3d9725a509de93276b9fa9b294
* Additional test cases with locking fixes. Also, make the code thread-safe. ↵drh2001-09-23
| | | | | (CVS 262) FossilOrigin-Name: bd7d6a64afa03cc64f6537f828d6c94975bf5f02
* Trying to get the OS abstraction layer to work. (CVS 256)drh2001-09-19
| | | FossilOrigin-Name: abff526d005b3b46904de091753cc79548739ad8
* Disclaimed copyright. Preparing for release 2.0. (CVS 250)drh2001-09-16
| | | FossilOrigin-Name: 4e926efe2b59adfec4086eb1d2ba830238facb4c
* All tests now pass. But there are still issues. For example, insertsdrh2001-09-14
| | | | | are way too slow. And additional tests are needed for new features. (CVS 243) FossilOrigin-Name: e7b65e37fd88c4d69c89cfe73ab345b8b645ada6
* Many problems fixed. Many problems yet to go. (CVS 242)drh2001-09-13
| | | FossilOrigin-Name: 62c7bd11bcf6438cdcbf66fa67a2bf4ab9d1664d
* Working better with Win95.drh2001-01-31
| | | | | Continued work on the new db.c backend. (CVS 1714) FossilOrigin-Name: df0ff304855bd18c7a3517c500e891b6d006be6a
* Changes to the DBBE. Moving toward having many moredrh2001-01-13
backend driver choices. (CVS 176) FossilOrigin-Name: c0730217a04323a1a73d125e3e7da32bcc8d58fc