From 23c356ccecaf10665777c05fac414466b7d5793d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 10 Mar 2008 12:39:23 +0000 Subject: 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 --- doc/src/sgml/func.sgml | 4 ++-- doc/src/sgml/ref/set.sgml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/src') 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 @@ - + Functions and Operators @@ -828,7 +828,7 @@ setseed(dp) void - set seed for subsequent random() calls (value between 0 and 1.0) + set seed for subsequent random() calls (value between -1.0 and 1.0) setseed(0.54823) 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 @@ @@ -166,7 +166,7 @@ SET [ SESSION | LOCAL ] TIME ZONE { timezone Sets the internal seed for the random number generator (the function random). 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 231-1. -- cgit v1.2.3