mirror of https://github.com/schollz/croc.git
use imohash
This commit is contained in:
parent
9f9b93cf47
commit
fef1c3ca3b
|
@ -41,7 +41,7 @@ func GetInput(prompt string) string {
|
||||||
|
|
||||||
// HashFile returns the hash of a file
|
// HashFile returns the hash of a file
|
||||||
func HashFile(fname string) (hash256 []byte, err error) {
|
func HashFile(fname string) (hash256 []byte, err error) {
|
||||||
return XXHashFile(fname)
|
return IMOHashFile(fname)
|
||||||
}
|
}
|
||||||
|
|
||||||
func MD5HashFile(fname string) (hash256 []byte, err error) {
|
func MD5HashFile(fname string) (hash256 []byte, err error) {
|
||||||
|
|
Loading…
Reference in New Issue