Miscellaneous #3960

This commit is contained in:
Alexey Milovidov 2019-01-17 17:45:02 +03:00
parent 0ec1fdef04
commit 178302cc5d

View File

@ -12,11 +12,8 @@ static std::array<char, 16> getSipHash(const String & str)
{ {
SipHash hash; SipHash hash;
hash.update(str.data(), str.size()); hash.update(str.data(), str.size());
char hash_data[16];
hash.get128(hash_data);
std::array<char, 16> result; std::array<char, 16> result;
memcpy(result.data(), hash_data, 16); hash.get128(result.data());
return result; return result;
} }