Browse Source

Merge pull request #83 from fanzeyi/fix-rand

Init random generator before calling rand()
pull/89/head
Max Lv 10 years ago
parent
commit
9abd8e8f50
1 changed files with 2 additions and 0 deletions
  1. 2
      src/local.c

2
src/local.c

@ -920,6 +920,8 @@ int main (int argc, char **argv)
char *conf_path = NULL;
char *iface = NULL;
srand(time(NULL));
int remote_num = 0;
ss_addr_t remote_addr[MAX_REMOTE_NUM];
char *remote_port = NULL;

Loading…
Cancel
Save