Seed chunker with random per-repository polynomial

This commit is contained in:
Alexander Neumann committed 2015-04-06 00:22:19 +02:00
1 parent c969a42e8d
commit b2307cafa2
7 files changed
+79 -31

No files matched your search

+2 -2
View File
@@ -88,8 +88,8 @@ func newChunker() interface{} {
defer chunkStats.m.Unlock()
chunkStats.new++
// create a new chunker with a nil reader
return chunker.New(nil, chunkerBufSize, sha256.New())
// create a new chunker with a nil reader and null polynomial
return chunker.New(nil, 0, chunkerBufSize, sha256.New())
}
func GetChunkBuf(s string) []byte {