mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Use PostmasterRandom(), not random(), for DSM control segment ID.
Otherwise, every startup gets the same "random" value, which is definitely not what was intended.
This commit is contained in:
@@ -403,7 +403,6 @@ static void processCancelRequest(Port *port, void *pkt);
|
||||
static int initMasks(fd_set *rmask);
|
||||
static void report_fork_failure_to_client(Port *port, int errnum);
|
||||
static CAC_state canAcceptConnections(void);
|
||||
static long PostmasterRandom(void);
|
||||
static void RandomSalt(char *salt, int len);
|
||||
static void signal_child(pid_t pid, int signal);
|
||||
static bool SignalSomeChildren(int signal, int targets);
|
||||
@@ -5101,7 +5100,7 @@ RandomSalt(char *salt, int len)
|
||||
/*
|
||||
* PostmasterRandom
|
||||
*/
|
||||
static long
|
||||
long
|
||||
PostmasterRandom(void)
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user