Re: Move OpenSSL random under USE_OPENSSL_RANDOM
Magnus Hagander <magnus@hagander.net>
From: Magnus Hagander <magnus@hagander.net>
To: Michael Paquier <michael@paquier.xyz>
Cc: Daniel Gustafsson <daniel@yesql.se>,
Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-11-05T12:56:27Z
Lists: pgsql-hackers
On Thu, Nov 5, 2020 at 1:28 PM Michael Paquier <michael@paquier.xyz> wrote: > > On Thu, Nov 05, 2020 at 01:18:15PM +0100, Daniel Gustafsson wrote: > > What about the (hypothetical) situation where USE_OPENSSL_RANDOM is used > > without USE_OPENSSL? Wouldn't the below make sure we cover all bases? > > You can actually try that combination, because it is possible today to > compile without --with-openssl but try to enforce USE_OPENSSL_RANDOM. > This leads to a compilation failure. I think that it is important to > have the #if/#elif business in the init function match the conditions > of the main function. +1 -- whatever those are, they should be the same. -- Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/
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