aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/fork_process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/postmaster/fork_process.c')
-rw-r--r--src/backend/postmaster/fork_process.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/backend/postmaster/fork_process.c b/src/backend/postmaster/fork_process.c
index 15d63408007..5247b9f23c9 100644
--- a/src/backend/postmaster/fork_process.c
+++ b/src/backend/postmaster/fork_process.c
@@ -16,9 +16,6 @@
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
-#ifdef USE_OPENSSL
-#include <openssl/rand.h>
-#endif
#include "postmaster/fork_process.h"
@@ -108,14 +105,8 @@ fork_process(void)
}
}
- /*
- * Make sure processes do not share OpenSSL randomness state. This is
- * no longer required in OpenSSL 1.1.1 and later versions, but until
- * we drop support for version < 1.1.1 we need to do this.
- */
-#ifdef USE_OPENSSL
- RAND_poll();
-#endif
+ /* do post-fork initialization for random number generation */
+ pg_strong_random_init();
}
return result;