]> granicus.if.org Git - postgresql/commit
Use PostmasterRandom(), not random(), for DSM control segment ID.
authorRobert Haas <rhaas@postgresql.org>
Tue, 20 Sep 2016 16:24:44 +0000 (12:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 20 Sep 2016 16:26:29 +0000 (12:26 -0400)
commit470d886c32efafa1b068b5ca48afafc2198c68d4
tree7f6c3226afde1bcee03e53a9f970438e4e2c373a
parent419113dfdc4c729f6c763cc30a9b02ee68a7da94
Use PostmasterRandom(), not random(), for DSM control segment ID.

Otherwise, every startup gets the same "random" value, which is
definitely not what was intended.
src/backend/postmaster/postmaster.c
src/backend/storage/ipc/dsm.c
src/include/postmaster/postmaster.h