From 258af5ebe6edd010b2c310510dcf18b361360f1e Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Sun, 16 Feb 2014 17:42:30 -0800 Subject: [PATCH] buffer: allow caller to initialize bufferhash state Signed-off-by: Samuel Just --- src/include/buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/buffer.h b/src/include/buffer.h index 4c275cacae9..5491105f948 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -448,6 +448,7 @@ public: public: hash() : crc(0) { } + hash(uint32_t init) : crc(init) { } void update(buffer::list& bl) { crc = bl.crc32c(crc); -- 2.47.3