# 6 characters Room ID

**URL:** <https://forum.heroiclabs.com/t/6-characters-room-id/5110>\
**Category:** Game Design\
**Tags:** getting-started\
**Created:** [April 1, 2024, 4:15pm UTC](https://forum.heroiclabs.com/t/6-characters-room-id/5110 "2024-04-01T16:15:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuin](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Shuin](https://forum.heroiclabs.com/u/Shuin)\
**Post date:** [April 1, 2024, 4:15pm UTC](https://forum.heroiclabs.com/t/6-characters-room-id/5110/1 "2024-04-01T16:15:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sathyaraj](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sathyaraj/32/1905_2.png) [@Sathyaraj](https://forum.heroiclabs.com/u/Sathyaraj)\
**Post date:** [April 3, 2024, 6:44am UTC](https://forum.heroiclabs.com/t/6-characters-room-id/5110/2 "2024-04-03T06:44:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [April 3, 2024, 10:56am UTC](https://forum.heroiclabs.com/t/6-characters-room-id/5110/3 "2024-04-03T10:56:13Z")

</div>

@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.
