]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/proc.c
Check and call arc4random_stir() if present
[ngircd-alex.git] / src / ngircd / proc.c
index d290f3bd100faed3cc17d8d24cd6396443a41131..a5afb5011cb1c468732561d5944fa9f685c1c4e4 100644 (file)
@@ -77,6 +77,9 @@ Proc_Fork(PROC_STAT *proc, int *pipefds, void (*cbfunc)(int, short), int timeout
                return -1;
        case 0:
                /* New child process: */
+#ifdef HAVE_ARC4RANDOM_STIR
+               arc4random_stir();
+#endif
 #ifndef HAVE_ARC4RANDOM
                srand(seed ^ (unsigned int)time(NULL) ^ getpid());
 #endif