From 3ea705c630b438fd6513fd6190190a559060f341 Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Thu, 21 Apr 2022 14:43:02 +0200 Subject: add compatibility with original remote build protocol --- src/buildtool/execution_api/common/execution_common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 1cf198fe..1208fc99 100644 --- a/src/buildtool/execution_api/common/execution_common.hpp +++ b/src/buildtool/execution_api/common/execution_common.hpp @@ -89,7 +89,7 @@ static void EncodeUUIDVariant1(std::string* uuid) { constexpr auto kHexDashPos = std::array{8UL, 12UL, 16UL, 20UL}; auto value = fmt::format("{}-{}", std::to_string(kRandomConstant), seed); - auto uuid = HashGenerator{HashGenerator::HashType::SHA1}.Run(value).Bytes(); + auto uuid = HashGenerator::Instance().Run(value).Bytes(); EncodeUUIDVersion4(&uuid); EncodeUUIDVariant1(&uuid); gsl_Expects(uuid.size() >= kRawLength); -- cgit v1.2.3