From: Wayne Davison Date: Mon, 11 May 2015 21:31:07 +0000 (-0700) Subject: Make the checksum_seed a bit harder to predict. X-Git-Tag: v3.1.2pre1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81ff413bb0d04bdccfdee82c32a76d26b5d08434;p=thirdparty%2Frsync.git Make the checksum_seed a bit harder to predict. --- diff --git a/compat.c b/compat.c index f89d466b..1df1db80 100644 --- a/compat.c +++ b/compat.c @@ -333,7 +333,7 @@ void setup_protocol(int f_out,int f_in) if (am_server) { if (!checksum_seed) - checksum_seed = time(NULL); + checksum_seed = time(NULL) ^ (getpid() << 6); write_int(f_out, checksum_seed); } else { checksum_seed = read_int(f_in);