mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-12 00:19:14 +08:00
14 lines
175 B
Go
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)
|
||
|
}
|