Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Oct 10, 2024
1 parent e0c0cdd commit bae6c8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xmake/core/base/hash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bae6c8f

Please sign in to comment.