ip/torrent: avoid peerid collision using truerand() instead of time(0)

This commit is contained in:
cinap_lenrek 2017-03-20 19:11:03 +01:00
parent c220100005
commit b7c05975f5

View file

@ -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: