Re: setseed accepts bad seeds - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: setseed accepts bad seeds
Date
Msg-id Pine.BSO.4.64.0704111449410.20552@leary.csoft.net
Whole thread Raw
In response to Re: setseed accepts bad seeds  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: setseed accepts bad seeds
Re: setseed accepts bad seeds
List pgsql-bugs
On Wed, 11 Apr 2007, Tom Lane wrote:

> It's not really possible to use it "incorrectly", AFAICS.  Any value you
> might pass to it will result in a specific new seed value.  Nowhere is
> there any guarantee of what the mapping is, and it's obviously
> impossible to guarantee that the mapping is one-to-one, so any user
> assumptions about what a specific seed value might "mean" seem broken
> regardless.
>

Then please consider this patch which checks the range and maps the
provided value to the entire seed space.

Kris Jurka

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: setseed accepts bad seeds
Next
From: John R Pierce
Date:
Subject: Re: RHEL4 RPM packages