From 4ef482175337e64d7bf2fb33abec2917c9e4fd4d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 1 Oct 2025 00:37:42 +0800 Subject: update some uuid hashes --- xmake/rules/c++/unity_build/unity_build.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/c++/unity_build/unity_build.lua') diff --git a/xmake/rules/c++/unity_build/unity_build.lua b/xmake/rules/c++/unity_build/unity_build.lua index e8f37f868..1ced33ec8 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.uuid():split("-", {plain = true})[1]) + unityfile:print("#define %s %s", uniqueid, "unity_" .. hash.random32()) end unityfile:print("#include \"%s\"", sourcefile) if uniqueid then -- cgit v1.3.1