setseed() doc

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: setseed() doc
Date: 2006-09-04 18:30:27
Message-ID: 44FC70C3.6020801@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

The doc doesn't state in what range the argument to setseed() should be.

Some tests suggest that only values in the range -1.0 to 1.0 work as a
seed and values outside of that give the same sequence of random numbers.

I've attached a trivial one line patch (this is the patch list after
all), but feel free to document it in any way that is appropriate.

setseed() also return an integer, but I have no clue of what it is. The
doc doesn't say anything about it.

The doc say that some functions here depend on the libc that is used,
but such things as the range of the argument and what the return value
is should be in the doc, shouldn't it?

/Dennis

Attachment Content-Type Size
setseed.txt text/plain 791 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-09-04 18:38:57 Re: Stopgap solution for ILIKE in multibyte encodings
Previous Message Tom Lane 2006-09-04 18:13:53 Re: [PATCHES] Contrib module to examine client

Browse pgsql-patches by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2006-09-04 18:42:21 Re: [PATCHES] Contrib module to examine client
Previous Message Tom Lane 2006-09-04 18:13:53 Re: [PATCHES] Contrib module to examine client