Remove ability to independently select random number generator
authorMagnus Hagander <magnus@hagander.net>
Fri, 20 Nov 2020 11:26:57 +0000 (12:26 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 20 Nov 2020 12:57:33 +0000 (13:57 +0100)
commit16f96c74d48e65da23d28665103e2c4c9d3414cc
tree768f5deeffe0751795ae1666016d4e2671918210
parentb5acf10cfc63ed1e0bc4eef466c0f4670a725ef3
Remove ability to independently select random number generator

Remove the ability to select random number generator independently from
SSL library. Instead, use the random number generator from the SSL
library (today only OpenSSL supported) if one is configured. If no SSL
library is configured, use the platform default (which means use
CryptoAPI on Win32 and /dev/urandom on Linux).

This also restructures pg_strong_random.c to have three clearly separate
sections, one for each implementation, with two functions in each,
instead of a scattered set of ifdefs throughout the whole file.

Author: Daniel Gustafsson, Magnus Hagander, Michael Paquier
Discussion: https://postgr.es/m/632623.1605460616@sss.pgh.pa.us
configure
configure.ac
src/include/pg_config.h.in
src/port/pg_strong_random.c
src/tools/msvc/Solution.pm