Skip to content

Commit

Permalink
Have default hash function returns a digest
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikat committed Apr 11, 2016
1 parent f2509db commit 95d9a5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bf/hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default_hash_function::default_hash_function(size_t seed)
{
}

size_t default_hash_function::operator()(object const& o) const
digest default_hash_function::operator()(object const& o) const
{
// FIXME: fall back to a generic universal hash function (e.g., HMAC/MD5) for
// too large objects.
Expand Down
4 changes: 2 additions & 2 deletions src/bf/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class default_hash_function

default_hash_function(size_t seed);

size_t operator()(object const& o) const;
digest operator()(object const& o) const;

private:
h3<size_t, max_obj_size> h3_;
h3<digest, max_obj_size> h3_;
};

/// A hasher which hashes an object *k* times.
Expand Down

0 comments on commit 95d9a5e

Please sign in to comment.