0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd:Ⓜ️🆔 Increase generated room_id characters to 18.

ircd:Ⓜ️🆔 Decrease generated device_id characters to 10; alnum.
This commit is contained in:
Jason Volk 2019-07-25 16:18:41 -07:00
parent 90fa55ed91
commit c5ad1141d0

View file

@ -509,16 +509,15 @@ ircd::m::id::id(const enum sigil &sigil,
case sigil::ROOM:
{
mutable_buffer buf{namebuf, 16};
rand::string(rand::dict::alnum, buf);
name = {namebuf, 16};
static const auto &dict{rand::dict::alnum};
name = rand::string(dict, mutable_buffer{namebuf, 18});
break;
}
case sigil::DEVICE:
{
static const auto &dict{rand::dict::alpha};
name = rand::string(dict, mutable_buffer{namebuf, 16});
static const auto &dict{rand::dict::alnum};
name = rand::string(dict, mutable_buffer{namebuf, 10});
break;
}