Do not use random() while generating MD5 salt.
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 9 Sep 2016 02:24:54 +0000 (11:24 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 9 Sep 2016 02:35:38 +0000 (11:35 +0900)
commit85c813c771eb523093cac4badd8b5e4b8937e635
tree6b4450cc57e173631e352c114cef87754e3e82e8
parent85d93c48e51057134895a29ae026d1bf2e053a37
Do not use random() while generating MD5 salt.

random() should not be used in security related applications.  To
replace random(), import PostmasterRandom() from PostgreSQL.  Also
store current time at the start up of Pgpool-II main process for later
use.

Per Coverity CID 1362583.
src/auth/pool_auth.c
src/main/pgpool_main.c
src/main/pool_globals.c