Merge pull request #83 from fanzeyi/fix-rand

Init random generator before calling rand()
This commit is contained in:
Max Lv
2014-07-01 11:59:10 +08:00
+2
View File
@@ -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;