summaryrefslogtreecommitdiff
path: root/src/irc/dcc
diff options
context:
space:
mode:
authorJochen Eisinger <c0ffee@irssi.org>2006-03-26 08:42:34 +0000
committerc0ffee <c0ffee@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-03-26 08:42:34 +0000
commit4de9baf8f1a4135128f3d40af7201e974107ac2f (patch)
tree6d7121baf9e2e370c353ec648e28c89a81fae0ff /src/irc/dcc
parent47704b800d63248a339637d2625d628aa32f3191 (diff)
downloadirssi-4de9baf8f1a4135128f3d40af7201e974107ac2f.zip
Removed all srand calls and added a single srand invokation in at startup
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4264 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc')
-rw-r--r--src/irc/dcc/dcc-chat.c1
-rw-r--r--src/irc/dcc/dcc-send.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index 58272d8a..bb44d4f2 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -515,7 +515,6 @@ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server)
signal_emit("dcc request send", 1, dcc);
/* generate a random id */
- srand(time(NULL));
p_id = rand() % 64;
dcc->pasv_id = p_id;
diff --git a/src/irc/dcc/dcc-send.c b/src/irc/dcc/dcc-send.c
index 4c72b761..14d7d1e6 100644
--- a/src/irc/dcc/dcc-send.c
+++ b/src/irc/dcc/dcc-send.c
@@ -438,7 +438,6 @@ static int dcc_send_one_file(int queue, const char *target, const char *fname,
/* Generate an ID for this send if using passive protocol */
if (passive) {
- srand(time(NULL));
dcc->pasv_id = rand() % 64;
}