aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-10-28 20:35:18 +0000
committerdrh <drh@noemail.net>2014-10-28 20:35:18 +0000
commit4f41b7dec5a99cc72148cf6d0dd66b890cf82619 (patch)
tree1553bf6774eed55254badbab61cefcd5a05daffd /src
parentc3da667b25cd513f3552652e783990734a200992 (diff)
downloadsqlite-4f41b7dec5a99cc72148cf6d0dd66b890cf82619.tar.gz
sqlite-4f41b7dec5a99cc72148cf6d0dd66b890cf82619.zip
Update the documentation on the sqlite3_randomness() interface to conform
to enhancements associated with the SQLITE_ENABLE_API_ARMOR change. FossilOrigin-Name: 96e9917c350dfe2069b87860bbb961424ff1105a
Diffstat (limited to 'src')
-rw-r--r--src/sqlite.h.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index bb5d90254..20835794e 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -2417,13 +2417,14 @@ sqlite3_int64 sqlite3_memory_highwater(int resetFlag);
** applications to access the same PRNG for other purposes.
**
** ^A call to this routine stores N bytes of randomness into buffer P.
-** ^If N is less than one, then P can be a NULL pointer.
+** ^The P parameter can be a NULL pointer.
**
** ^If this routine has not been previously called or if the previous
-** call had N less than one, then the PRNG is seeded using randomness
-** obtained from the xRandomness method of the default [sqlite3_vfs] object.
-** ^If the previous call to this routine had an N of 1 or more then
-** the pseudo-randomness is generated
+** call had N less than one or a NULL pointer for P, then the PRNG is
+** seeded using randomness obtained from the xRandomness method of
+** the default [sqlite3_vfs] object.
+** ^If the previous call to this routine had an N of 1 or more and a
+** non-NULL P then the pseudo-randomness is generated
** internally and without recourse to the [sqlite3_vfs] xRandomness
** method.
*/