mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Miscellaneous #3960
This commit is contained in:
parent
0ec1fdef04
commit
178302cc5d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user