summaryrefslogtreecommitdiff
path: root/xmake/core/base/hash.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-07 00:27:40 +0800
committerruki <[email protected]>2025-10-06 20:49:26 +0800
commit75a5ae1bfbd0570819c9cab6e623f2f26db2e8a2 (patch)
treecfed77a9075e2dc55d87890eb21b11004b0ce95f /xmake/core/base/hash.lua
parentdc3f8642301976871a1510b2bda77b94b2984cac (diff)
use rand64 first
Diffstat (limited to 'xmake/core/base/hash.lua')
-rw-r--r--xmake/core/base/hash.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/base/hash.lua b/xmake/core/base/hash.lua
index 9d7ca40ed..b03b6d2a1 100644
--- a/xmake/core/base/hash.lua
+++ b/xmake/core/base/hash.lua
@@ -145,8 +145,9 @@ function hash.strhash128(str)
end
-- generate random32 hash
+-- @note it is easy to trigger hash conflicts
function hash.rand32()
- if hash._rand32 then
+ if false then --hash._rand32 then
return hash._rand32()
else
return hash.strhash32(tostring(math.random()))