Commit cb0cb7fa authored by Geoff Simmons's avatar Geoff Simmons

Use a 256 bit hash for DeepHash() (making collisions even less likely).

parent 7f2dfede
......@@ -105,7 +105,7 @@ type Spec struct {
// for equivalence by content, and are considered unchanged when only
// their metadata change.
func (spec Spec) DeepHash() []byte {
hash := sha512.New512_224()
hash := sha512.New512_256()
hash.Write([]byte(spec.Version))
hash.Write([]byte(spec.Main))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment