setseed accepts bad seeds

From: Kris Jurka <books(at)ejurka(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: setseed accepts bad seeds
Date: 2007-04-11 08:28:23
Message-ID: Pine.BSO.4.64.0704110423170.13329@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Why doesn't setseed complain when given a seed value outside of its
expected range? The documentation claims that 0 -> 1 should be used,
but shouldn't it actually be -1 -> 1 to get the full range of the seed?
If passed a value outside this range you always get the same value which
isn't going to produce a good random number stream.

Kris Jurka

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2007-04-11 08:35:48 Re: RHEL4 RPM packages
Previous Message Devrim GÜNDÜZ 2007-04-11 08:21:32 Re: RHEL4 RPM packages