mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 00:02:34 +01:00
ircd: Remove the $() for hashes. This will make for a better $(event_id) device...
This commit is contained in:
parent
f7ee7ea211
commit
00ac048e68
1 changed files with 0 additions and 7 deletions
|
@ -38,13 +38,6 @@ namespace ircd
|
|||
// which can consume many cycles...
|
||||
template<size_t PRIME = 7681> size_t hash(const std::string &str, const size_t i = 0);
|
||||
template<size_t PRIME = 7681> size_t hash(const std::u16string &str, const size_t i = 0);
|
||||
|
||||
/// ircd:: reserves the $ character over a string as an alias for hash()
|
||||
template<class string>
|
||||
constexpr size_t $(string&& s)
|
||||
{
|
||||
return hash(std::forward<string>(s));
|
||||
}
|
||||
}
|
||||
|
||||
/// Collision-Resistant Hashing
|
||||
|
|
Loading…
Reference in a new issue