From de98597b75818b4ff09a39b8d7b6d2fadf7025c4 Mon Sep 17 00:00:00 2001 From: Zeray Rice Date: Mon, 30 Jun 2014 11:51:30 +0800 Subject: [PATCH] add srand before rand --- src/local.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/local.c b/src/local.c index 60a87e47..771ce268 100644 --- a/src/local.c +++ b/src/local.c @@ -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;