summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-07 21:56:58 +0000
committerSadie Powell <sadie@witchery.services>2024-03-07 22:52:41 +0000
commit464e6b8010c11708bcbed7cf6b2d972977f0e286 (patch)
tree0adee0c876aee23acb1e16e2195df90500ff6e65 /src/init.cpp
parent3272c1bbc65eaa29ba63e176ec76702c5b21d367 (diff)
Use the C++11 random number generator instead of rand().
This is safer, faster, and doesn't require seeding.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 4d8594a9d..969263191 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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)