Re: Bloom index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bloom index
Дата
Msg-id 19694.1263782647@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bloom index  (Greg Stark <gsstark@mit.edu>)
Ответы Re: Bloom index  (Teodor Sigaev <teodor@sigaev.ru>)
Список 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 по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Bloom index
Следующее
От: Alex Hunsaker
Дата:
Сообщение: Re: attoptions