Re: Move OpenSSL random under USE_OPENSSL_RANDOM
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Magnus Hagander <magnus@hagander.net>
Cc: Daniel Gustafsson <daniel@yesql.se>, Tom Lane <tgl@sss.pgh.pa.us>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-11-20T02:31:15Z
Lists: pgsql-hackers
On Thu, Nov 19, 2020 at 09:49:05PM +0100, Magnus Hagander wrote: > Ugh, that's pretty terrible. I have spent some time testing this part this morning, and I can see that genhtml does not complain with your patch. It looks like in the case of 2771fce the tool got confused because the same function was getting compiled twice for the backend and the frontend, but here you only get one code path compiled depending on the option used. +#else /* not OPENSSL or WIN32 */ I think you mean USE_OPENSSL or just OpenSSL here, but not "OPENSSL". pg_strong_random.c needs a pgindent run, there are two inconsistent diffs. Looks fine except for those nits. -- Michael
Commits
-
Remove ability to independently select random number generator
- 16f96c74d48e 14.0 landed
-
Add pg_strong_random_init function to initialize random number generator
- 5ee180a39470 14.0 landed