summaryrefslogtreecommitdiff
path: root/src/buildtool/common/tree.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/common/tree.hpp')
-rw-r--r--src/buildtool/common/tree.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buildtool/common/tree.hpp b/src/buildtool/common/tree.hpp
index 06c2e7d5..2f33bfe0 100644
--- a/src/buildtool/common/tree.hpp
+++ b/src/buildtool/common/tree.hpp
@@ -85,8 +85,10 @@ class Tree {
}
static auto ComputeId(inputs_t const& inputs) -> std::string {
- return HashFunction::Instance()
- .ComputeHash(ComputeDescription(inputs).dump())
+ // The type of HashFunction is irrelevant here. It is used for
+ // identification of trees. SHA256 is used.
+ HashFunction const hash_function{HashFunction::JustHash::Compatible};
+ return hash_function.ComputeHash(ComputeDescription(inputs).dump())
.HexString();
}
};