Commit 533d54f5 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

Tweaks to hash primitives

Summary: [Folly] Tweaks to hash primitives: twang, jenkins_rev, fnv

Reviewed By: ot, luciang

Differential Revision: D23290185

fbshipit-source-id: 080dfa8a5f357065473f3973654c91d01c683c3c
parent bfde457b
...@@ -82,7 +82,7 @@ ByteRange DataHolder::data(size_t size) const { ...@@ -82,7 +82,7 @@ ByteRange DataHolder::data(size_t size) const {
} }
uint64_t hashIOBuf(const IOBuf* buf) { uint64_t hashIOBuf(const IOBuf* buf) {
uint64_t h = folly::hash::FNV_64_HASH_START; uint64_t h = folly::hash::fnv64_hash_start;
for (auto& range : *buf) { for (auto& range : *buf) {
h = folly::hash::fnv64_buf(range.data(), range.size(), h); h = folly::hash::fnv64_buf(range.data(), range.size(), h);
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment