Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> writes:
> On Thu, Nov 15, 2018 at 4:38 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Um, this bit is *not* right:
> Will this close the case?
> - srandom(((unsigned int) MyProcPid) ^
> - ((unsigned int) MyStartTimestamp << 12) ^
> - ((unsigned int) MyStartTimestamp >> 20));
> + srandom(((uint64) MyProcPid) ^
> + ((uint64) MyStartTimestamp << 12) ^
> + ((uint64) MyStartTimestamp >> 20));
WFM.
regards, tom lane