From dafa074b5803fa2af14f04e66be546a635974464 Mon Sep 17 00:00:00 2001 From: psychon Date: Mon, 1 Oct 2007 14:15:57 +0000 Subject: [PATCH] Fix sf.net bug 1804815. We never called srand(). Thanks to feuerfuchs for reporting. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@847 726aef4b-f618-498e-8847-2d620e286838 --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index 0ae96027..3848cbe3 100644 --- a/main.cpp +++ b/main.cpp @@ -61,6 +61,8 @@ int main(int argc, char** argv, char** envp) { CString sConfig; CString sDataDir = ""; + srand(time(NULL)); + #ifdef HAVE_LIBSSL InitSSL(); #endif /* HAVE_LIBSSL */