What algorithm does the random() function use?

Поиск
Список
Период
Сортировка
От Thomas Harold
Тема What algorithm does the random() function use?
Дата
Msg-id 495A134E.30209@nybeta.com
обсуждение исходный текст
Ответы Re: What algorithm does the random() function use?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
So how good is the random() function in pgsql?  How many iterations
through the PRNG before the PRNG loops?

Does it depend on the underlying O/S?  Which, in our case, is CentOS 5,
64bit.

(I ask, because back in my Visual Basic days, I ran into an issue where
the built-in PRNG would loop after 30 bits worth had been used.  Which
caused issues in a situation where we really need a whole lot more
length in our PRNG.)

В списке pgsql-novice по дате отправления:

Предыдущее
От: Bruce Hyatt
Дата:
Сообщение: Re: Fw: Re: connection refused
Следующее
От: Tom Lane
Дата:
Сообщение: Re: What algorithm does the random() function use?