diff options
Diffstat (limited to 'weed/storage/needle/crc.go')
| -rw-r--r-- | weed/storage/needle/crc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/storage/needle/crc.go b/weed/storage/needle/crc.go index b7d3edd83..65a45293e 100644 --- a/weed/storage/needle/crc.go +++ b/weed/storage/needle/crc.go @@ -21,6 +21,7 @@ func (c CRC) Update(b []byte) CRC { return CRC(crc32.Update(uint32(c), table, b)) } +// Value Deprecated. Just use the raw uint32 value to compare. func (c CRC) Value() uint32 { return uint32(c>>15|c<<17) + 0xa282ead8 } @@ -51,4 +52,4 @@ func (c *CRCwriter) Write(p []byte) (n int, err error) { return } -func (c *CRCwriter) Sum() uint32 { return c.crc.Value() } // final hash +func (c *CRCwriter) Sum() uint32 { return uint32(c.crc) } // final hash |
