Re: What seed does random() use if setseed() is not called first?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carl Sopchak <carl(at)sopchak(dot)me>
Cc: pgsql-sql(at)lists(dot)postgresql(dot)org
Subject: Re: What seed does random() use if setseed() is not called first?
Date: 2022-07-23 22:06:01
Message-ID: 1222809.1658613961@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Carl Sopchak <carl(at)sopchak(dot)me> writes:
> <p>Thank you for the quick reply!  But I wouldn't have bothered you
> if the documentation stated something to the effect of "While it's
> platform-dependent, if setseed() is not called, the random number
> generator is generally seeded by whatever method the operating
> system provides as a source of randomness, such as /dev/urandom on
> Linux/Unix, or &lt;???&gt; on Windows."</p>

Hmm, I thought this already was documented, but it looks like not.
I'll see what I can do.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Carl Sopchak 2022-07-23 22:09:29 Re: What seed does random() use if setseed() is not called first?
Previous Message Carl Sopchak 2022-07-23 21:55:40 Re: What seed does random() use if setseed() is not called first?