]> 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:28:02 +0000 (12:28 -0400)
commit92668cd4d3df5a7a48408fc722e876a3e1c167d9
tree6cafc8a5a41a969e491ba4c7850ddb8d081eb95c
parent6bcd26c43c4f0ef718e984643338ddd5b207f9f9
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