fixes
authorChristian Grothoff <christian@grothoff.org>
Fri, 5 Feb 2010 08:56:08 +0000 (08:56 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 5 Feb 2010 08:56:08 +0000 (08:56 +0000)
src/transport/gnunet-nat-client.c
src/transport/gnunet-nat-server.c

index fc88f82295c769ce5208a42c358a84ffc6396944..3bf409461057ee639c1561be5c50b17514b68005 100644 (file)
@@ -37,6 +37,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <stdint.h>
+#include <time.h>
 #include <netinet/ip.h>
 #include <netinet/ip_icmp.h>
 #include <netinet/in.h> 
@@ -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);
index 9eab289e0386d1e1a375bb9ddd197b477afadb05..936726fb3f5481211446f07cba3948e77091392d 100644 (file)
@@ -37,6 +37,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <stdint.h>
+#include <time.h>
 #include <netinet/ip.h>
 #include <netinet/ip_icmp.h>
 #include <netinet/in.h> 
@@ -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);