Re: Support getrandom() for pg_strong_random() source - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Support getrandom() for pg_strong_random() source
Date
Msg-id 2D8C6B2A-E246-4851-93F4-EC421287E22E@yesql.se
Whole thread Raw
In response to Re: Support getrandom() for pg_strong_random() source  (Jacob Champion <jacob.champion@enterprisedb.com>)
List pgsql-hackers
> On 10 Oct 2025, at 02:11, Jacob Champion <jacob.champion@enterprisedb.com> wrote:
>
> On Thu, Oct 9, 2025 at 4:53 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>> Does it mean that we introduce something like pg_fast_random() and
>> packagers can select it as the random number generation function
>> instead of pg_strong_random()? Or can packagers select the function
>> used in pg_strong_random()?
>
> The latter -- packagers should be able to select the implementation of
> pg_strong_random(). I think pg_fast_random() is likely to be a bad
> abstraction if we don't have more use cases to guide it.

I am very much agreement with this.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [PATCH TEST] Fix logical replication setup in subscription test `t/009_matviews.pl`
Next
From: Bertrand Drouvot
Date:
Subject: Preserve index stats during ALTER TABLE ... TYPE ...