diff options
| author | ruki <[email protected]> | 2025-10-01 00:51:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-01 00:51:18 +0800 |
| commit | 21c498ab682b083a58dbe25a716ba72a5012f8be (patch) | |
| tree | 5bb69fb0bf4dc184a0927785df90c8cde6df26f7 /xmake/rules/c++ | |
| parent | df4f8d13e506861cd6d9d8677cd270bfd0cd3a7b (diff) | |
fix hash api
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 1ced33ec8..3df2d75b4 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.random32()) + unityfile:print("#define %s %s", uniqueid, "unity_" .. hash.rand32()) end unityfile:print("#include \"%s\"", sourcefile) if uniqueid then |
