diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-03-10 12:39:23 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-03-10 12:39:23 +0000 |
| commit | 23c356ccecaf10665777c05fac414466b7d5793d (patch) | |
| tree | 81e263f9f7dcc54883d5ff6e898acbe78de3ca65 /doc/src | |
| parent | bfce56eea45b1369b7bb2150a150d1ac109f5073 (diff) | |
Document and enforce that the usable range of setseed() arguments is
-1 to 1, not 0 to 1. The actual behavior for values within this range
does not change. Kris Jurka
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/func.sgml | 4 | ||||
| -rw-r--r-- | doc/src/sgml/ref/set.sgml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 1052ab0d670..ec138a5c2dc 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.423 2008/03/06 18:49:32 momjian Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.424 2008/03/10 12:39:22 tgl Exp $ --> <chapter id="functions"> <title>Functions and Operators</title> @@ -828,7 +828,7 @@ <row> <entry><literal><function>setseed</function>(<type>dp</type>)</literal></entry> <entry><type>void</type></entry> - <entry>set seed for subsequent <literal>random()</literal> calls (value between 0 and 1.0)</entry> + <entry>set seed for subsequent <literal>random()</literal> calls (value between -1.0 and 1.0)</entry> <entry><literal>setseed(0.54823)</literal></entry> <entry></entry> </row> diff --git a/doc/src/sgml/ref/set.sgml b/doc/src/sgml/ref/set.sgml index 26ee8594b44..a31d1540526 100644 --- a/doc/src/sgml/ref/set.sgml +++ b/doc/src/sgml/ref/set.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/set.sgml,v 1.91 2007/09/11 00:06:41 tgl Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/set.sgml,v 1.92 2008/03/10 12:39:22 tgl Exp $ PostgreSQL documentation --> @@ -166,7 +166,7 @@ SET [ SESSION | LOCAL ] TIME ZONE { <replaceable class="PARAMETER">timezone</rep <para> Sets the internal seed for the random number generator (the function <function>random</function>). Allowed values are - floating-point numbers between 0 and 1, which are then + floating-point numbers between -1 and 1, which are then multiplied by 2<superscript>31</>-1. </para> |
