We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
digest
1 parent f2509db commit 95d9a5eCopy full SHA for 95d9a5e
2 files changed
src/bf/hash.cc
@@ -9,7 +9,7 @@ default_hash_function::default_hash_function(size_t seed)
9
{
10
}
11
12
-size_t default_hash_function::operator()(object const& o) const
+digest default_hash_function::operator()(object const& o) const
13
14
// FIXME: fall back to a generic universal hash function (e.g., HMAC/MD5) for
15
// too large objects.
src/bf/hash.h
@@ -23,10 +23,10 @@ class default_hash_function
23
24
default_hash_function(size_t seed);
25
26
- size_t operator()(object const& o) const;
+ digest operator()(object const& o) const;
27
28
private:
29
- h3<size_t, max_obj_size> h3_;
+ h3<digest, max_obj_size> h3_;
30
};
31
32
/// A hasher which hashes an object *k* times.
0 commit comments