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:
parent
90fa55ed91
commit
c5ad1141d0
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue