Re: Support getrandom() for pg_strong_random() source

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Support getrandom() for pg_strong_random() source
Дата
Msg-id 591B91B0-E240-4C8C-BC9D-58C731655D2D@yesql.se
обсуждение исходный текст
Ответ на Re: Support getrandom() for pg_strong_random() source  (Peter Eisentraut <peter@eisentraut.org>)
Ответы Re: Support getrandom() for pg_strong_random() source
Список pgsql-hackers
> On 30 Jul 2025, at 13:10, Peter Eisentraut <peter@eisentraut.org> wrote:
>
> On 30.07.25 08:59, Masahiko Sawada wrote:
>> I've updated the patch to support getentropy() instead of getrandom().
>
> The point still stands that the number of installations without OpenSSL support is approximately zero, so what is the
purposeof this patch if approximately no one will be able to use it? 

The main usecase I've heard discussed (mostly in hallway tracks IIRC) is to
allow multiple PRNG's so that codepaths which favor performance over
cryptographic properties can choose, this would not be that but a small step on
that path (whether or not that's the appropriate step is debatable).

For installations without OpenSSL, getrandom() as an API over /dev/urandom
still works when /dev is chrooted away.  That subset might be too small to
spend code on though.

--
Daniel Gustafsson




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