diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index c5f8351a4..f15754b28 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -321,7 +321,7 @@ void User::Collide(NickAlias *na) int i = 0; do { - guestnick = Config->NSGuestNickPrefix + stringify(getrandom16()); + guestnick = Config->NSGuestNickPrefix + stringify(static_cast<uint16_t>(rand())); } while (finduser(guestnick) && i++ < 10); if (i == 11) |