提交 178302cc 编写于 作者: A Alexey Milovidov

Miscellaneous #3960

上级 0ec1fdef
......@@ -12,11 +12,8 @@ static std::array<char, 16> getSipHash(const String & str)
{
SipHash hash;
hash.update(str.data(), str.size());
char hash_data[16];
hash.get128(hash_data);
std::array<char, 16> result;
memcpy(result.data(), hash_data, 16);
hash.get128(result.data());
return result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册