diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-25 19:07:25 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-25 19:07:25 +0200 |
commit | 6e1fed7057ee26f21b0e59a5aeb292d4f3f0e8ae (patch) | |
tree | fbd269e6515bb163f8c18ad00d1f03ca6b628de7 /bitlbee.c | |
parent | 7ed3199067034b4fda4055778e02274f83bcfcb8 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 ); |