ref: 1e3b882e81597d9213a52a9b816faf6e965db739
parent: 6617b43705272899358068d9d944fb37bc919890
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Mar 20 15:11:03 EDT 2017
ip/torrent: avoid peerid collision using truerand() instead of time(0)
--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -1352,7 +1352,7 @@
while(waitpid() >= 0)
;
- srand(time(0));
+ srand(truerand());
atnotify(catch, 1);
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){case -1:
--
⑨