aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-25 19:07:25 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-25 19:07:25 +0200
commit6e1fed7057ee26f21b0e59a5aeb292d4f3f0e8ae (patch)
treefbd269e6515bb163f8c18ad00d1f03ca6b628de7 /bitlbee.c
parent7ed3199067034b4fda4055778e02274f83bcfcb8 (diff)
Using salted MD5 checksums for the user's BitlBee password and salted RC4
encryption for the IM account passwords, plus some calls to srand() to keep the salts secure and unique.
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 1d4e2b34..cbad61dc 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -290,6 +290,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 );