ip/torrent: avoid peerid collision using truerand() instead of time(0)
This commit is contained in:
parent
c220100005
commit
b7c05975f5
1 changed files with 1 additions and 1 deletions
|
@ -1352,7 +1352,7 @@ main(int argc, char *argv[])
|
||||||
while(waitpid() >= 0)
|
while(waitpid() >= 0)
|
||||||
;
|
;
|
||||||
|
|
||||||
srand(time(0));
|
srand(truerand());
|
||||||
atnotify(catch, 1);
|
atnotify(catch, 1);
|
||||||
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){
|
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){
|
||||||
case -1:
|
case -1:
|
||||||
|
|
Loading…
Reference in a new issue