summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-03-20 19:11:03 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-03-20 19:11:03 +0100
commitb7c05975f53cd0acea81c9f1cfed302328ec8478 (patch)
tree1f8631a84cb68de09b9803a2975bf6bc99f50582 /sys/src/cmd/ip
parentc2201000053c29f35c9e9fffd6514a163790cccf (diff)
ip/torrent: avoid peerid collision using truerand() instead of time(0)
Diffstat (limited to 'sys/src/cmd/ip')
-rw-r--r--sys/src/cmd/ip/torrent.c2
1 files changed, 1 insertions, 1 deletions
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: