chore: derive MatchmakingBuildId from buildLabel #3041

Merged
Sainan merged 2 commits from mmbid into main 2025-11-18 04:14:38 -08:00
Showing only changes of commit 20fdb7430d - Show all commits

View File

@@ -162,7 +162,7 @@ const createLoginResponse = (
resp.CrossPlatformAllowed = account.CrossPlatformAllowed;
resp.HUB = `${myUrlBase}/api/`;
// On live, the MatchmakingBuildId is a random 64-bit integer, but any string that is unique per build should do the trick.
// The MatchmakingBuildId is a 64-bit integer represented as a decimal string. On live, the value is seemingly random per build, but really any value that is different across builds should work.
const [year, month, day, hour, minute] = buildLabel.split(".").map(x => parseInt(x));
resp.MatchmakingBuildId = (
year * 1_00_00_00_00 +