From 9530cc31700f68fd229eee69eabd2baa099f404a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Jan 2005 13:51:38 +0000 Subject: * Start move towards SHA-256 hashes instead of MD5. * Start cleaning up unique store path generation (they weren't always unique; in particular the suffix ("-aterm-2.2", "-builder.sh") was not part of the hash, therefore changes to the suffix would cause multiple store objects with the same hash). --- src/libutil/hash.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutil/hash.hh') diff --git a/src/libutil/hash.hh b/src/libutil/hash.hh index d82cd87a2166..4490d2ff7ace 100644 --- a/src/libutil/hash.hh +++ b/src/libutil/hash.hh @@ -18,7 +18,7 @@ const int sha256HashSize = 32; struct Hash { - static const unsigned int maxHashSize = 20; + static const unsigned int maxHashSize = 32; unsigned int hashSize; unsigned char hash[maxHashSize]; -- cgit 1.4.1