Skip to content

Commit 2cff8d5

Browse files
ferdymercuryguitargeek
authored andcommitted
[io] Rename Internal::Hash to Internal::ShortHash
as suggested by axel/pcanal
1 parent d63c848 commit 2cff8d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

io/io/inc/ROOT/RConcurrentHashColl.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public:
4545
HashValue(const char *data, int len);
4646
ULong64_t const *Get() const { return fDigest; }
4747

48-
/// Return the hash value for this object
49-
size_t Hash() const noexcept
48+
/// Return the 64-bit hash of this 256-bit long digest/hash (4 x 64-bit)
49+
size_t ShortHash() const noexcept
5050
{
5151
std::hash<ULong64_t> hasher;
5252
return hasher(fDigest[0]) ^ hasher(fDigest[1]) ^ hasher(fDigest[2]) ^ hasher(fDigest[3]);

io/io/src/RConcurrentHashColl.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ template <>
1212
struct hash<ROOT::Internal::RConcurrentHashColl::HashValue> {
1313
std::size_t operator()(const ROOT::Internal::RConcurrentHashColl::HashValue &key) const noexcept
1414
{
15-
return key.Hash();
15+
return key.ShortHash();
1616
}
1717
};
1818
} // namespace std

0 commit comments

Comments
 (0)