From: Christian Grothoff Date: Fri, 5 Feb 2010 08:56:08 +0000 (+0000) Subject: fixes X-Git-Tag: initial-import-from-subversion-38251~22786 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=80ab6f6eb81c2f2f646a24dbdb8e15da5abe5cf4;p=oweals%2Fgnunet.git fixes --- diff --git a/src/transport/gnunet-nat-client.c b/src/transport/gnunet-nat-client.c index fc88f8229..3bf409461 100644 --- a/src/transport/gnunet-nat-client.c +++ b/src/transport/gnunet-nat-client.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -498,6 +499,7 @@ main (int argc, char *const *argv) strerror (errno)); return 1; } + srand (time(NULL)); memset (&dst, 0, sizeof (dst)); dst.sin_family = AF_INET; dst.sin_port = htons (NAT_TRAV_PORT); diff --git a/src/transport/gnunet-nat-server.c b/src/transport/gnunet-nat-server.c index 9eab289e0..936726fb3 100644 --- a/src/transport/gnunet-nat-server.c +++ b/src/transport/gnunet-nat-server.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -506,6 +507,7 @@ main (int argc, char *const *argv) strerror (errno)); return 1; } + srand (time(NULL)); memset (&dst, 0, sizeof (dst)); dst.sin_family = AF_INET; dst.sin_port = htons (NAT_TRAV_PORT);