summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index fa8576825..daee20eea 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -537,7 +537,7 @@ end
-- generate the temporary file path
function os.tmpfile(key)
- return path.join(os.tmpdir(), "_" .. (hash.uuid(key):gsub("-", "")))
+ return path.join(os.tmpdir(), "_" .. (hash.uuid4(key):gsub("-", "")))
end
-- run command