public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Carl Sopchak <[email protected]>
Cc: [email protected]
Subject: Re: What seed does random() use if setseed() is not called first?
Date: Sat, 23 Jul 2022 17:47:19 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

Carl Sopchak <[email protected]> writes:
>     <p>There is one point about the documentation for random() and
>       setseed() that is missing.  What is used to seed random() if
>       setseed() isn't called first?  I assume it's something like
>       /dev/random or /dev/urandom, but that's just a guess.  Can someone
>       please enlighten me?</p>

We don't document this because it's platform- and version-dependent,
but yeah, generally /dev/urandom or local equivalent.

			regards, tom lane





view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: What seed does random() use if setseed() is not called first?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox