simpler initialization

This commit is contained in:
Eric Mertens 2025-03-09 13:52:46 -07:00
parent 04a092b9a3
commit 7793e8b02c

View File

@ -106,8 +106,7 @@ auto Registration::start(
auto Registration::randomize_nick() -> void
{
std::string new_nick;
new_nick += settings_.nickname.substr(0, 8);
std::string new_nick = settings_.nickname.substr(0, 8);
std::random_device rd;
std::mt19937 gen{rd()};