diff options
| author | ruki <[email protected]> | 2025-10-07 00:27:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-06 20:49:26 +0800 |
| commit | 75a5ae1bfbd0570819c9cab6e623f2f26db2e8a2 (patch) | |
| tree | cfed77a9075e2dc55d87890eb21b11004b0ce95f /xmake/rules/c++ | |
| parent | dc3f8642301976871a1510b2bda77b94b2984cac (diff) | |
use rand64 first
Diffstat (limited to 'xmake/rules/c++')
| -rw-r--r-- | xmake/rules/c++/unity_build/unity_build.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/unity_build/unity_build.lua b/xmake/rules/c++/unity_build/unity_build.lua index 3df2d75b4..d5f5b060c 100644 --- a/xmake/rules/c++/unity_build/unity_build.lua +++ b/xmake/rules/c++/unity_build/unity_build.lua @@ -36,7 +36,7 @@ function _merge_unityfile(target, sourcefile_unity, sourcefiles, opt) sourcefile_unity = path.absolute(sourcefile_unity) sourcefile = path.relative(sourcefile, path.directory(sourcefile_unity)) if uniqueid then - unityfile:print("#define %s %s", uniqueid, "unity_" .. hash.rand32()) + unityfile:print("#define %s %s", uniqueid, "unity_" .. hash.rand64()) end unityfile:print("#include \"%s\"", sourcefile) if uniqueid then |
