joy4/checksum_test.go
2015-12-07 11:37:07 +08:00

15 lines
206 B
Go

package ts
import (
"testing"
)
func TestChecksum(t *testing.T) {
b := []byte("hello world")
b = append(b, []byte{0xbb,0x08,0xec,0x87}...)
crc := updateIeeeCrc32(0xffffffff, b)
t.Logf("%x", crc)
}