mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-18 19:24:18 +00:00
Merge pull request #83 from fanzeyi/fix-rand
Init random generator before calling rand()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user