]> jfr.im git - irc/atheme/atheme.git/commitdiff
core/ptasks: remove another redundant srand()
authorMantas Mikulėnas <redacted>
Sun, 26 Apr 2015 00:11:08 +0000 (03:11 +0300)
committerMantas Mikulėnas <redacted>
Sun, 26 Apr 2015 00:11:09 +0000 (03:11 +0300)
No need to feed it not-very-random junk after init already called
srand(arc4random()).

libathemecore/ptasks.c

index 0cc6a73030878c6542498aa5e0820e171041025d..95e7beebd454d51e4b19f0b9824b88e12338249e 100644 (file)
@@ -824,9 +824,6 @@ void handle_eob(server_t *s)
                if (s2->flags & SF_EOB2)
                        handle_eob(s2);
        }
-       /* Reseed RNG now we have a little more data to seed with */
-       if (s->uplink == me.me)
-               srand(rand() ^ ((CURRTIME << 20) + cnt.user + (cnt.chanuser << 12)) ^ (cnt.chan << 17) ^ ~cnt.bin);
 }
 
 /* Received a message from a user, check if they are flooding