diff options
| author | 2023-07-15 12:56:38 +0100 | |
|---|---|---|
| committer | 2023-07-15 12:56:38 +0100 | |
| commit | ccb7b056d604348f072e77d9b134a3f47e983fcb (patch) | |
| tree | c9b46064fea0baaad86e13f4ee1597ed4e24a10d /src/inspircd.cpp | |
| parent | Rename several Windows files to use the same naming scheme. (diff) | |
Replace rand/rand_s/random with the C++11 random number generator.
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a4c6c9edc..c6aab7dac 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -341,15 +341,6 @@ namespace ServerInstance->Config->CommandLine.writelog = !do_nolog; ServerInstance->Config->CommandLine.writepid = !do_nopid; } - // Seeds the random number generator if applicable. - void SeedRng(timespec ts) - { -#if defined _WIN32 - srand(ts.tv_nsec ^ ts.tv_sec); -#elif !defined HAS_ARC4RANDOM_BUF - srandom(static_cast<int>(ts.tv_nsec ^ ts.tv_sec)); -#endif - } // Sets handlers for various process signals. void SetSignals() @@ -468,7 +459,6 @@ InspIRCd::InspIRCd(int argc, char** argv) this->startup_time = TIME.tv_sec; IncreaseCoreDumpSize(); - SeedRng(TIME); SocketEngine::Init(); this->Config = new ServerConfig; |
