From 21014f3be3e4f8ebf34243f4f10841f0fb0b3843 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 22 Jul 2024 16:41:52 +0200 Subject: Rename HashFunction methods and enums --- src/buildtool/execution_api/common/execution_common.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/common/execution_common.hpp') diff --git a/src/buildtool/execution_api/common/execution_common.hpp b/src/buildtool/execution_api/common/execution_common.hpp index b6bd1fa0..0cf0983d 100644 --- a/src/buildtool/execution_api/common/execution_common.hpp +++ b/src/buildtool/execution_api/common/execution_common.hpp @@ -107,9 +107,9 @@ static void EncodeUUIDVariant1(std::string* uuid) { // The type of HashFunction is irrelevant here. It is used for // identification purposes only. SHA256 is used. - HashFunction const hash_function{HashFunction::JustHash::Compatible}; + HashFunction const hash_function{HashFunction::Type::PlainSHA256}; auto value = fmt::format("{}-{}", std::to_string(kRandomConstant), seed); - auto uuid = hash_function.ComputeHash(value).Bytes(); + auto uuid = hash_function.PlainHashData(value).Bytes(); EncodeUUIDVersion4(&uuid); EncodeUUIDVariant1(&uuid); Expects(uuid.size() >= kRawLength); -- cgit v1.2.3