Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitce4939f

Browse files
committed
Use RAND_poll() for seeding randomness after fork().
OpenSSL deprecated RAND_cleanup(), and OpenSSL 1.1.0 made it into ano-op. Replace it with RAND_poll(), per an OpenSSL communityrecommendation. While this has no user-visible consequences underOpenSSL defaults, it might help under non-default settings.Daniel Gustafsson, reviewed by David Steele and Michael Paquier.Discussion:https://postgr.es/m/9B038FA5-23E8-40D0-B932-D515E1D8F66A@yesql.se
1 parent0a0727c commitce4939f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/postmaster/fork_process.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ fork_process(void)
109109
}
110110

111111
/*
112-
* Make sure processes do not share OpenSSL randomness state.
112+
* Make sure processes do not share OpenSSL randomness state. This is
113+
* no longer required in OpenSSL 1.1.1 and later versions, but until
114+
* we drop support for version < 1.1.1 we need to do this.
113115
*/
114116
#ifdefUSE_OPENSSL
115-
RAND_cleanup();
117+
RAND_poll();
116118
#endif
117119
}
118120

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp