Re: rand48 replacement

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: rand48 replacement
Дата
Msg-id alpine.DEB.2.22.394.2109251929180.3216312@pseudo
обсуждение исходный текст
Ответ на Re: rand48 replacement  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: rand48 replacement  (Fabien COELHO <coelho@cri.ensmp.fr>)
Re: rand48 replacement  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Hello Tom,

> Just FTR, I strongly object to your removal of process-startup srandom()
> calls.

Ok. The point of the patch is to replace and unify the postgres underlying 
PRNG, so there was some logic behind this removal.

> Those are not only setting the seed for our own use, but also ensuring 
> that things like random() calls within PL functions or other libraries 
> aren't 100% predictable.

Sure, they shouldn't be predictable.

Attached v15 also does call srandom if it is there, and fixes yet another 
remaining random call.

-- 
Fabien.
Вложения

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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: logical decoding and replication of sequences
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: extended stats on partitioned tables