Am 28.09.22 um 16:18 schrieb Tom Lane:
> It is seeded at process start, yes. If you don't feel a need for
> user control over the sequence used by these functions, then using
> pg_global_prng_state is fine. (Basically the point to be made
> here is that we need to keep a tight rein on what can be affected
> by setseed().)
>
> regards, tom lane
New patch: array_shuffle() and array_sample() use pg_global_prng_state now.
Martin