summaryrefslogtreecommitdiff
path: root/xmake/core/base/hash.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-10-11 00:51:16 +0800
committerruki <[email protected]>2024-10-11 00:51:16 +0800
commit09ee92711986cb729d89c23c1802156bd335a602 (patch)
treeaf92c74314e9d978c20303067225055cdcec40f2 /xmake/core/base/hash.lua
parent687beddbf316b1565a55b68934c3681320a1d51f (diff)
improve hash module
Diffstat (limited to 'xmake/core/base/hash.lua')
-rw-r--r--xmake/core/base/hash.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/hash.lua b/xmake/core/base/hash.lua
index 74bbfd4cd..d5fa685b5 100644
--- a/xmake/core/base/hash.lua
+++ b/xmake/core/base/hash.lua
@@ -96,5 +96,10 @@ function hash.xxhash128(file_or_data)
return hashstr, errors
end
+-- make uuid
+function hash.uuid(str)
+ return hash.uuid4(str)
+end
+
-- return module: hash
return hash