diff options
| author | Adam <Adam@anope.org> | 2012-02-13 00:10:45 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-02-13 00:10:45 -0500 |
| commit | 086790d6331357022f4da17c76b26b9fc6e2ad90 (patch) | |
| tree | e82d9e0b67cfc5ad0251d8bdcd2490207a875fc6 /modules/commands/ns_register.cpp | |
| parent | 1bc8e2ab82db9ce00faaa44887338873a2cd9210 (diff) | |
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.
Diffstat (limited to 'modules/commands/ns_register.cpp')
| -rw-r--r-- | modules/commands/ns_register.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 3010c0eb4..341397c67 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -337,7 +337,7 @@ static bool SendRegmail(User *u, NickAlias *na, BotInfo *bi) }; int idx, min = 1, max = 62; for (idx = 0; idx < 9; ++idx) - codebuf += chars[1 + static_cast<int>((static_cast<float>(max - min)) * getrandom16() / 65536.0) + min]; + codebuf += chars[1 + static_cast<int>((static_cast<float>(max - min)) * static_cast<uint16_t>(rand()) / 65536.0) + min]; na->nc->Extend("ns_register_passcode", new ExtensibleString(codebuf)); } else |
