Re: What seed does random() use if setseed() is not called first?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What seed does random() use if setseed() is not called first?
Дата
Msg-id 1220338.1658612839@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-sql
Carl Sopchak <carl@sopchak.me> writes:
>     <p>There is one point about the documentation for random() and
>       setseed() that is missing.  What is used to seed random() if
>       setseed() isn't called first?  I assume it's something like
>       /dev/random or /dev/urandom, but that's just a guess.  Can someone
>       please enlighten me?</p>

We don't document this because it's platform- and version-dependent,
but yeah, generally /dev/urandom or local equivalent.

            regards, tom lane



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

Предыдущее
От: Steve Midgley
Дата:
Сообщение: Re: A function to find errors in groups in a table
Следующее
От: Tom Lane
Дата:
Сообщение: Re: What seed does random() use if setseed() is not called first?