-
-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve random nick generation #3834
Conversation
maybe add the random function to SharedUtils (SharedUtil.random.hpp?) and from there you can call that function in the nick generation func? |
like :
|
You don't want to create a new generator for each part of the nickname. In-fact, we should probably share the generator between successive calls. |
Possibly a template there with pragma and optimized code but yeah, something like that |
We can have a static (maybe const) generator that will be shared with related functions only. |
Fixes issue from #3777 where nickname parts could be "null" due to not updating the constants (which are now removed in place of better code).