Re: setseed() doc

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: setseed() doc
Date: 2006-09-04 21:47:51
Message-ID: 200609042147.k84LlpK05094@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org> writes:
> > <entry><literal><function>setseed</function>(<type>dp</type>)</literal></entry>
> > <entry><type>int</type></entry>
> > - <entry>set seed for subsequent <literal>random()</literal> calls</entry>
> > + <entry>set seed for subsequent <literal>random()</literal> calls (value between -1.0 and 1.0)</entry>
>
> Looking at the code, it would appear that the intended range is 0 to 1.

Docs updated.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachment Content-Type Size
/bjm/diff text/x-diff 1.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2006-09-04 22:01:32 Re: [HACKERS] Trivial patch to double vacuum speed on tables with no indexes
Previous Message Bruce Momjian 2006-09-04 21:47:02 Re: [HACKERS] Trivial patch to double vacuum speed

Browse pgsql-patches by date

  From Date Subject
Next Message Gregory Stark 2006-09-04 22:01:32 Re: [HACKERS] Trivial patch to double vacuum speed on tables with no indexes
Previous Message Bruce Momjian 2006-09-04 21:47:02 Re: [HACKERS] Trivial patch to double vacuum speed