summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-01 00:47:56 +0800
committerruki <[email protected]>2025-10-01 00:47:56 +0800
commit9dc8bb99439f4d31e3563a5865764798c2094e8e (patch)
tree911e222e99d1df86804f1380940f829045fbe97b /xmake/core/base/os.lua
parent672470e6e4ea7fd150354c131ba5fb60f7331643 (diff)
improve random hash
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 72d395d77..988d9e4bf 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -761,7 +761,7 @@ function os.tmpfile(opt_or_key)
key = opt_or_key.key
opt = opt_or_key
end
- local filename = "_" .. (key and hash.strhash128(key) or (hash.random128()))
+ local filename = "_" .. (key and hash.strhash128(key) or (hash.rand128()))
return path.join(os.tmpdir(opt), filename)
end