summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/net-nonblock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/net-nonblock.c b/src/core/net-nonblock.c
index 5eaae8d8..14e08664 100644
--- a/src/core/net-nonblock.c
+++ b/src/core/net-nonblock.c
@@ -101,6 +101,8 @@ int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe,
#endif
/* child */
+ srand(time(NULL));
+
memset(&rec, 0, sizeof(rec));
rec.error = net_gethostbyname(addr, &rec.ip4, &rec.ip6);
if (rec.error == 0) {