mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
add srand before rand
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user