add srand before rand

This commit is contained in:
Zeray Rice
2014-06-30 11:55:53 +08:00
parent 5d0696f655
commit de98597b75
+2
View File
@@ -914,6 +914,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;