Re: PG 10: could not generate random cancel key

Dean Rasheed <dean.a.rasheed@gmail.com>

From: Dean Rasheed <dean.a.rasheed@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2018-07-18T13:07:44Z
Lists: pgsql-hackers
On 18 July 2018 at 14:01, Michael Paquier <michael@paquier.xyz> wrote:
> Thanks for the updated version.  This looks safer to me.  It is possible
> to simplify the code by removing the external RAND_status() call and
> check for RAND_status() first in the loop as per the attached.

OK, thanks.

Barring any further comments, I'll push and back-patch this to v10
later this week.

Regards,
Dean


Commits

  1. Guard against rare RAND_bytes() failures in pg_strong_random().