mirror of
https://github.com/anope/anope.git
synced 2026-06-27 18:46:39 +02:00
Removed our RNG and just use the systems, it's not very widely used. Also made DNS query ids not random as they don't need to be.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user