diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-14T13·51+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-14T13·51+0000 |
commit | 9530cc31700f68fd229eee69eabd2baa099f404a (patch) | |
tree | 5cc317adeb0c8098d8a9197a0bcbcb29ee4d941d /src/libutil/hash.hh | |
parent | a7b94e87d7d28f763a708876cba46c8f2484b526 (diff) |
* 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).
Diffstat (limited to 'src/libutil/hash.hh')
-rw-r--r-- | src/libutil/hash.hh | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |