Re: [PATCH] using arc4random for strong randomness matters. - Mailing list pgsql-hackers

From David CARLIER
Subject Re: [PATCH] using arc4random for strong randomness matters.
Date
Msg-id CA+XhMqwadKPKGjQcFQuR-AJYZwPxuv1=saBftW46D9yUa93igg@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] using arc4random for strong randomness matters.  (David Fetter <david@fetter.org>)
Responses Re: [PATCH] using arc4random for strong randomness matters.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I m not against as such that depends of the implementation but I ve seen in quick glance it s RC4 ?

Regards.

On 22 November 2017 at 15:37, David Fetter <david@fetter.org> wrote:
On Tue, Nov 21, 2017 at 12:08:46PM +0000, David CARLIER wrote:
> Hello,
>
> This is my first small personal contribution.
>
> Motivation :
> - Using fail-safe, file descriptor free solution on *BSD and Darwin system
> - Somehow avoiding at the moment FreeBSD as it still uses RC4 (seemingly
> updated to Chacha20 for FreeBSD 12.0 and eventually backported later on).
> - For implementation based on Chacha* it is known to be enough fast for the
> purpose.
> - make check passes.
>
> Hope it is good.
>
> Thanks in advance.

This is neat.  Apparently, it's useable on Linux with a gizmo called
libbsd.  Would it be worth it to test for that library on that
platform?

Best,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

pgsql-hackers by date:

Previous
From: Vicky Vergara
Date:
Subject: Re: generic-msvc.h(91): error C2664
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] using arc4random for strong randomness matters.