From bae6c8f0ecbcebe57d77cb88fd8648373193f28b Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 11 Oct 2024 00:56:33 +0800 Subject: add todo --- xmake/core/base/hash.lua | 1 + 1 file changed, 1 insertion(+) 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() -- cgit v1.3.1