ref: b7c05975f53cd0acea81c9f1cfed302328ec8478
parent: c2201000053c29f35c9e9fffd6514a163790cccf
author: cinap_lenrek <[email protected]>
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: