Files
seaweedFS/weed/filer2/abstract_sql/hashing.go
2018-05-26 14:08:55 -07:00

14 lines
175 B
Go

package abstract_sql
import (
"crypto/md5"
"io"
)
// returns a 128 bit hash
func md5hash(dir string) []byte {
h := md5.New()
io.WriteString(h, dir)
return h.Sum(nil)
}