Skip to content

Commit 95d9a5e

Browse files
committed
Have default hash function returns a digest
1 parent f2509db commit 95d9a5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bf/hash.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ default_hash_function::default_hash_function(size_t seed)
99
{
1010
}
1111

12-
size_t default_hash_function::operator()(object const& o) const
12+
digest default_hash_function::operator()(object const& o) const
1313
{
1414
// FIXME: fall back to a generic universal hash function (e.g., HMAC/MD5) for
1515
// too large objects.

src/bf/hash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ class default_hash_function
2323

2424
default_hash_function(size_t seed);
2525

26-
size_t operator()(object const& o) const;
26+
digest operator()(object const& o) const;
2727

2828
private:
29-
h3<size_t, max_obj_size> h3_;
29+
h3<digest, max_obj_size> h3_;
3030
};
3131

3232
/// A hasher which hashes an object *k* times.

0 commit comments

Comments
 (0)