improve package ghash

This commit is contained in:
John Guo
2022-01-13 21:31:23 +08:00
parent 9892cc46e4
commit 805f60efa1
12 changed files with 355 additions and 323 deletions

View File

@ -24,7 +24,7 @@ func BinVersion() string {
if binaryVersion == "" {
binaryContent, _ := ioutil.ReadFile(selfPath)
binaryVersion = strconv.FormatInt(
int64(ghash.BKDRHash(binaryContent)),
int64(ghash.BKDR(binaryContent)),
36,
)
}