aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-10-15 11:41:12 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-10-15 11:41:12 +0200
commit69cb62335f8bbe46b2879aabc5fdbe288891b02b (patch)
tree38fcda3162027d741598536c28a2c0cd4c3f52c6 /bitlbee.c
parent695e39232324711816f1db8e25fdba59a0c6456f (diff)
parente97827bee83d3a0663aa284e72a4f6c84b4b4dfe (diff)
Merging with storage-xml. It seems to be working pretty well, so maybe
this way more people will test it. :-)
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 85ae4621..5870bbad 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -309,6 +309,10 @@ static gboolean bitlbee_io_new_client( gpointer data, gint fd, b_input_condition
{
irc_t *irc;
+ /* Since we're fork()ing here, let's make sure we won't
+ get the same random numbers as the parent/siblings. */
+ srand( time( NULL ) ^ getpid() );
+
/* Close the listening socket, we're a client. */
close( global.listen_socket );
b_event_remove( global.listen_watch_source_id );