summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-10-11 00:56:33 +0800
committerruki <[email protected]>2024-10-11 00:56:33 +0800
commitbae6c8f0ecbcebe57d77cb88fd8648373193f28b (patch)
tree2ca27997b3796f5600ace902e4cc63b24283c309
parente0c0cddf7cc74bfbb2f948651be251ce7d4f6b57 (diff)
add todo
-rw-r--r--xmake/core/base/hash.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/base/hash.lua b/xmake/core/base/hash.lua
index 44502ad19..f6bd27033 100644
--- a/xmake/core/base/hash.lua
+++ b/xmake/core/base/hash.lua
@@ -101,6 +101,7 @@ function hash.uuid(str)
return hash.uuid4(str)
end
+-- TODO, we should optimize it
-- generate hash32 from string, e.g. "91e8ecf1"
function hash.strhash32(str)
return hash.uuid4(str):split("-", {plain = true})[1]:lower()