diff --git a/physical/cache.go b/physical/cache.go index 96f2586f31..5f3e81e915 100644 --- a/physical/cache.go +++ b/physical/cache.go @@ -1,7 +1,7 @@ package physical import ( - "crypto/sha1" + "crypto/md5" "encoding/hex" "fmt" "strings" @@ -59,7 +59,7 @@ func NewCache(b Backend, size int, logger log.Logger) *Cache { } func (c *Cache) lockHashForKey(key string) string { - hf := sha1.New() + hf := md5.New() hf.Write([]byte(key)) return strings.ToLower(hex.EncodeToString(hf.Sum(nil))[:2]) }