chore: derive MatchmakingBuildId from buildLabel #3041
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user