Re: [PATCH] using arc4random for strong randomness matters.

From: David CARLIER <devnexen(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: David Fetter <david(at)fetter(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] using arc4random for strong randomness matters.
Date: 2017-11-22 16:16:35
Message-ID: CA+XhMqyPBACwnVGsHH3J5wTzGzYR+SGKuc4TryizPmC8H=jmbw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Basically the call never fails, always generating high quality random data
(especially the implementations based on Chacha* family, RC4 has
predictability issues), there is no need of a file descriptor.

On 22 November 2017 at 16:06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> David CARLIER <devnexen(at)gmail(dot)com> writes:
> > I m not against as such that depends of the implementation but I ve seen
> in
> > quick glance it s RC4 ?
>
> More generally, why should we bother with an additional implementation?
> Is this better than /dev/urandom, and if so why?
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-11-22 16:42:43 Re: [PATCH] using arc4random for strong randomness matters.
Previous Message Tom Lane 2017-11-22 16:06:17 Re: [PATCH] using arc4random for strong randomness matters.