mirror of
https://github.com/anope/anope.git
synced 2026-06-25 16:46:37 +02:00
Use the C++11 random number generator instead of rand().
This is safer, faster, and doesn't require seeding.
This commit is contained in:
@@ -494,10 +494,6 @@ bool Anope::Init(int ac, char **av)
|
||||
/* Initialize multi-language support */
|
||||
Language::InitLanguages();
|
||||
|
||||
/* Initialize random number generator */
|
||||
block = Config->GetBlock("options");
|
||||
srand(block->Get<unsigned>("seed") ^ time(NULL));
|
||||
|
||||
/* load modules */
|
||||
Log() << "Loading modules...";
|
||||
for (int i = 0; i < Config->CountBlock("module"); ++i)
|
||||
|
||||
Reference in New Issue
Block a user