[PATCH] using arc4random for strong randomness matters.

From: David CARLIER <devnexen(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] using arc4random for strong randomness matters.
Date: 2017-11-21 12:08:46
Message-ID: CA+XhMqy1JvK6UW__aJGx5Y94OqFG4Sr170UB1sZ6GJso9N7OQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Attachment Content-Type Size
0001-Using-arc4random-API-for-strong-randomness-if-availa.patch application/octet-stream 5.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-11-21 13:00:46 Re: [HACKERS] Partition-wise aggregation/grouping
Previous Message amul sul 2017-11-21 11:57:01 Re: [HACKERS] Parallel Append implementation