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:30:38 +0000 (12:30 -0400)
commitb1aed95f52f5fea1366f4c4b3a46b5604c6ca1e3
treef7c667de4598ae485e1973f0b441108134da9704
parentc124e3649b0423cd7abc3f81208d9c7e8a7e8a8a
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