From: Andrew Tridgell Date: Thu, 28 Mar 2002 00:38:29 +0000 (+0100) Subject: add the byte length of the hash into the hash result. This gains some X-Git-Tag: v1.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de8f44273ccf85764ea408b6971fada9fd25a0f7;p=thirdparty%2Fccache.git add the byte length of the hash into the hash result. This gains some bits, plus is useful for seeing how large the compiles are. this breaks all existing caches ... --- diff --git a/hash.c b/hash.c index e4ec119ff..69c8bef8e 100644 --- a/hash.c +++ b/hash.c @@ -71,7 +71,7 @@ char *hash_result(void) mdfour_result(&md, sum); for (i=0;i<16;i++) { - sprintf(&ret[i*2], "%02x", (unsigned)sum[i]); + sprintf(&ret[i*2], "%02x-%d", (unsigned)sum[i], md.totalN); } return ret;