Better [#METR-18510].

This commit is contained in:
Alexey Milovidov 2016-03-03 23:48:04 +03:00
parent a8f423a74c
commit c8d87e8a24

View File

@ -374,7 +374,7 @@ void Cluster::assignName()
SHA512_Init(&ctx); SHA512_Init(&ctx);
for (const auto & host : elements) for (const auto & host : elements)
SHA512_Update(&ctx, reinterpret_cast<const void *>(host.data()), host.size()); SHA512_Update(&ctx, reinterpret_cast<const void *>(host.c_str()), host.size() + 1);
SHA512_Final(hash, &ctx); SHA512_Final(hash, &ctx);