library: hash, hash/crc64

This commit is contained in:
xushiwei
2024-07-30 18:26:33 +08:00
parent bdca09007d
commit aae7af2194
3 changed files with 14 additions and 1 deletions

11
_cmptest/crcdemo/crc.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"fmt"
"hash/crc64"
)
func main() {
crc := crc64.MakeTable(crc64.ECMA)
fmt.Printf("%016x\n", crc64.Checksum([]byte("Hello world"), crc))
}