6 characters Room ID

Just a simple question, is it safe use the first 6 character of the matchID as a Room ID since I think it is an uuid which I assume that having collision with same id would be a rare case? I’m aware that the shorter the id the higher chance a collision will happen but I think 6 characters like among us also using would be ok.

I created 4 letter room code, create mapping and store it in server storage, when player enters the short room code I fetch the actual matchID and join the game.

@Shuin it all depends on the number of matches, the first 6 characters of the matchID are 32 random bits, for a few matches the probability is very low, but for many matches the probability may not be negligible anymore.

It’s best if you keep some mapping as @Sathyaraj suggests.