aboutsummaryrefslogtreecommitdiff
path: root/www/lang.tcl
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-01-29 15:50:05 +0000
committerdrh <drh@noemail.net>2007-01-29 15:50:05 +0000
commit63cf66f02ea088c7284c3fbfab879f48ceadc20a (patch)
tree21306843a35e4c59c3983208976508ad3d068b0c /www/lang.tcl
parent5fecee1557ea4b41214df5bce3bc0e1436ad2de0 (diff)
downloadsqlite-63cf66f02ea088c7284c3fbfab879f48ceadc20a.tar.gz
sqlite-63cf66f02ea088c7284c3fbfab879f48ceadc20a.zip
Add the randomhex() function as a built-in. (CVS 3619)
FossilOrigin-Name: a6001589ab1349f7a6b4af941e9e0fd73d13c1c0
Diffstat (limited to 'www/lang.tcl')
-rw-r--r--www/lang.tcl11
1 files changed, 10 insertions, 1 deletions
diff --git a/www/lang.tcl b/www/lang.tcl
index ba1655f8c..09d95101f 100644
--- a/www/lang.tcl
+++ b/www/lang.tcl
@@ -1,7 +1,7 @@
#
# Run this Tcl script to generate the lang-*.html files.
#
-set rcsid {$Id: lang.tcl,v 1.118 2006/09/23 20:46:23 drh Exp $}
+set rcsid {$Id: lang.tcl,v 1.119 2007/01/29 15:50:06 drh Exp $}
source common.tcl
if {[llength $argv]>0} {
@@ -1374,6 +1374,15 @@ between -9223372036854775808 and +9223372036854775807.</td>
</tr>
<tr>
+<td valign="top" align="right">randomhex(<i>N</i>)</td>
+<td valign="top">Return a pseudo-random hexadecimal string that is
+<i>N</i> characters in length. <i>N</i> should be an even integer between
+2 and 1000. The intended use of this function is to generate
+universally unique identifiers (UUID). For that purpose, it is recommended
+that <i>N</i> be at least 32.</td>
+</tr>
+
+<tr>
<td valign="top" align="right">round(<i>X</i>)<br>round(<i>X</i>,<i>Y</i>)</td>
<td valign="top">Round off the number <i>X</i> to <i>Y</i> digits to the
right of the decimal point. If the <i>Y</i> argument is omitted, 0 is