diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-14 18:41:53 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-06-20 15:23:02 +0200 |
commit | 1ea0b1d9ff98d8c44658046019c94f5952ad5c66 (patch) | |
tree | a4f8b95b249f55f6e5c042319f65e0a50d1785a3 /src/buildtool/common/repository_config.cpp | |
parent | 7bfe61079b0355d260b977193e3b05be969ca068 (diff) | |
download | justbuild-1ea0b1d9ff98d8c44658046019c94f5952ad5c66.tar.gz |
Crypto: Add and use set of globally used hash functions
Diffstat (limited to 'src/buildtool/common/repository_config.cpp')
-rw-r--r-- | src/buildtool/common/repository_config.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/common/repository_config.cpp b/src/buildtool/common/repository_config.cpp index 1366d8f9..eb72b1c6 100644 --- a/src/buildtool/common/repository_config.cpp +++ b/src/buildtool/common/repository_config.cpp @@ -60,7 +60,8 @@ auto RepositoryConfig::DeduplicateRepo(std::string const& repo) const // content-fixed. if (data.base_desc) { // Use hash of content-fixed base description as content id - auto hash = ComputeHashDigest(data.base_desc->dump()).Bytes(); + auto hash = + HashFunction::ComputeHash(data.base_desc->dump()).Bytes(); // Add state with name, transitions, and content id minimizer.AddState(repo, data.info.name_mapping, hash); } |