Fix checksum bench
This commit is contained in:
parent
7f3343169a
commit
57aba1a5c4
4 changed files with 7 additions and 5 deletions
|
|
@ -8,6 +8,5 @@ package checksum
|
|||
//
|
||||
// The initial checksum must have been computed on an even number of bytes.
|
||||
func Checksum(buf []byte, initial uint16) uint16 {
|
||||
s, _ := calculateChecksum(buf, false, initial)
|
||||
return s
|
||||
return ChecksumDefault(buf, initial)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue