[#12519] Replace random+CRC32 UUID with proper time-based UUIDv1
本帖由 MDT GitHub 同步机器人自动整理。翻译与摘要由 AI 生成,仅供阅读参考。
自动翻译暂时不可用,以下内容为原始内容。
变更概要
未生成摘要。
内容
Summary
Player identifiers were previously 8 random bytes padded with a CRC32 checksum of those same bytes (unchecked, unused) to reach the 16-byte wire size - giving only 64 bits of real entropy. This replaces that scheme with a proper RFC 4122 version 1 (time-based) UUID, using the machine's MAC address as the node ID.
Security
MAC-based node ID makes the identifier tied to actual hardware, making it harder to spin up new identities to dodge bans compared to a purely random value.
Removed the Steam-account-derived UUID (
Rand(steamAccountId).nextBytes(...)). Steam account IDs are often publicly visible, so this was a deterministic, guessable mapping from a public SteamID to a player's in-game uuid - anyone could compute another player's identifier from their SteamID. Steam clients now use the same random UUIDv1 generation as everyone else.Dropped the unchecked CRC32 padding, which added wire bytes without any real verification.
Compatibility
Wire format size is unchanged (still 16 bytes in ConnectPacket), so client and server from this fork remain fully compatible with each other.
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
Pull Request 信息
GitHub 编号:#12519
作者:dsdsfadsfsadf
状态:closed
目标分支:master
来源分支:master
创建时间:2026-08-22 02:52:49 CST
<details> <summary>查看原文</summary>
Summary
Player identifiers were previously 8 random bytes padded with a CRC32 checksum of those same bytes (unchecked, unused) to reach the 16-byte wire size - giving only 64 bits of real entropy. This replaces that scheme with a proper RFC 4122 version 1 (time-based) UUID, using the machine's MAC address as the node ID.
Security
MAC-based node ID makes the identifier tied to actual hardware, making it harder to spin up new identities to dodge bans compared to a purely random value.
Removed the Steam-account-derived UUID (
Rand(steamAccountId).nextBytes(...)). Steam account IDs are often publicly visible, so this was a deterministic, guessable mapping from a public SteamID to a player's in-game uuid - anyone could compute another player's identifier from their SteamID. Steam clients now use the same random UUIDv1 generation as everyone else.Dropped the unchecked CRC32 padding, which added wire bytes without any real verification.
Compatibility
Wire format size is unchanged (still 16 bytes in ConnectPacket), so client and server from this fork remain fully compatible with each other.
I have read the contribution guidelines.
I have ensured that my code compiles, if applicable.
I have ensured that any new features in this PR function correctly in-game, if applicable.
</details>
来源:GitHub #12519