0
0
Fork 0
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:
Jason Volk 2017-11-06 12:21:43 -08:00
parent f7ee7ea211
commit 00ac048e68

View file

@ -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