Re: setseed() doc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org, Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: setseed() doc
Date: 2006-09-04 18:53:02
Message-ID: 10625.1157395982@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2006-09-04 19:05:55 Re: setseed() doc
Previous Message Stefan Kaltenbrunner 2006-09-04 18:42:21 Re: [PATCHES] Contrib module to examine client

Browse pgsql-patches by date

  From Date Subject
Next Message Dennis Bjorklund 2006-09-04 19:05:55 Re: setseed() doc
Previous Message Stefan Kaltenbrunner 2006-09-04 18:42:21 Re: [PATCHES] Contrib module to examine client