Re: Bloom index - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bloom index
Date
Msg-id 19694.1263782647@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bloom index  (Greg Stark <gsstark@mit.edu>)
Responses Re: Bloom index  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> The only thing that jumps out at me from the code itself is the use of
> rand() and srand() which seems unacceptable.

Yeah, (1) rand isn't a good random number generator and (2) fooling with
the main random number sequence is user-unfriendly.  If you need a
private source of random numbers you might base it on erand48 like geqo
has done.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Bloom index
Next
From: Alex Hunsaker
Date:
Subject: Re: attoptions