|
37 | 37 | * |
38 | 38 | * |
39 | 39 | * IDENTIFICATION |
40 | | - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.426 2004/10/06 09:35:21 momjian Exp $ |
| 40 | + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.427 2004/10/07 00:03:15 tgl Exp $ |
41 | 41 | * |
42 | 42 | * NOTES |
43 | 43 | * |
@@ -2575,8 +2575,6 @@ static int |
2575 | 2575 | BackendRun(Port*port) |
2576 | 2576 | { |
2577 | 2577 | intstatus; |
2578 | | -structtimevalnow; |
2579 | | -structtimezonetz; |
2580 | 2578 | charremote_host[NI_MAXHOST]; |
2581 | 2579 | charremote_port[NI_MAXSERV]; |
2582 | 2580 | charremote_ps_data[NI_MAXHOST]; |
@@ -2754,9 +2752,7 @@ BackendRun(Port *port) |
2754 | 2752 | * start a new random sequence in the random() library function. |
2755 | 2753 | */ |
2756 | 2754 | random_seed=0; |
2757 | | -gettimeofday(&now,&tz); |
2758 | | -srandom((unsignedint)now.tv_usec); |
2759 | | - |
| 2755 | +srandom((unsignedint) (MyProcPid ^port->session_start.tv_usec)); |
2760 | 2756 |
|
2761 | 2757 | /* ---------------- |
2762 | 2758 | * Now, build the argv vector that will be given to PostgresMain. |
|