Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution
Дата
Msg-id 10225.1421722783@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution  (Pedro Gimeno <pgsql-004@personal.formauri.es>)
Ответы Re: BUG #12589: Poor randomness from random() with some seeds; poor resolution  (Pedro Gimeno <pgsql-004@personal.formauri.es>)
Список pgsql-bugs
Pedro Gimeno <pgsql-004@personal.formauri.es> writes:
> Tom Lane wrote, On 2015-01-19 16:22:
>> This is not a bug; it's a feature request, and a rather poorly
>> grounded one at that.

> It's a purportedly random sequence that turns out not to be random, with
> not even a caveat in the manual. That's a bug.

It is absolutely arguable that this is a glibc bug, so I encourage you
to submit a bug report to them and see what happens.  However, Postgres'
random() function is clearly documented to be just a thin layer over the
platform's random() function:

    The characteristics of the values returned by random() depend on
    the system implementation.

That seems to me to be a sufficient "caveat".

            regards, tom lane

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

Предыдущее
От: Marco Atzeri
Дата:
Сообщение: Re: BUG #9074: prepared_xacts test freezes
Следующее
От: aruggiero@codarex.com
Дата:
Сообщение: BUG #12603: Results Ordering not correct