simpler initialization
This commit is contained in:
parent
04a092b9a3
commit
7793e8b02c
@ -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()};
|
||||
|
Loading…
x
Reference in New Issue
Block a user