From b7c05975f53cd0acea81c9f1cfed302328ec8478 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 20 Mar 2017 19:11:03 +0100 Subject: [PATCH] ip/torrent: avoid peerid collision using truerand() instead of time(0) --- sys/src/cmd/ip/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/ip/torrent.c b/sys/src/cmd/ip/torrent.c index 7b89a40b7..fc324977b 100644 --- a/sys/src/cmd/ip/torrent.c +++ b/sys/src/cmd/ip/torrent.c @@ -1352,7 +1352,7 @@ main(int argc, char *argv[]) while(waitpid() >= 0) ; - srand(time(0)); + srand(truerand()); atnotify(catch, 1); switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){ case -1: