mirror of
https://github.com/sqlite/sqlite.git
synced 2025-09-02 12:21:26 +03:00
Add the randomhex() function as a built-in. (CVS 3619)
FossilOrigin-Name: a6001589ab1349f7a6b4af941e9e0fd73d13c1c0
This commit is contained in:
11
www/lang.tcl
11
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} {
|
||||
@@ -1373,6 +1373,15 @@ is also useful when writing triggers to implement undo/redo functionality.
|
||||
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
|
||||
|
Reference in New Issue
Block a user