Sequential Identities
Recommended implementation of IIdentities that avoids ID collisions.
Dynamic IDs (next): Sequential integers that ignore the parent ID. Client IDs are even, server IDs are odd, ensuring no overlap.
Stable IDs (mix): Hash-based with the high bit set (0x8000000000000000) to ensure they never collide with dynamic IDs. The number of stable entities is small, so hash collisions are unlikely.