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

From David Fetter
Subject Re: [PATCH] using arc4random for strong randomness matters.
Date
Msg-id 20171122153714.GA19138@fetter.org
Whole thread Raw
In response to [PATCH] using arc4random for strong randomness matters.  (David CARLIER <devnexen@gmail.com>)
Responses Re: [PATCH] using arc4random for strong randomness matters.  (David CARLIER <devnexen@gmail.com>)
List pgsql-hackers
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: Arthur Zakirov
Date:
Subject: Re: [HACKERS] Bug in to_timestamp().
Next
From: Vicky Vergara
Date:
Subject: Re: generic-msvc.h(91): error C2664