diff --git a/dhtest.c b/dhtest.c index a1f9471..08981e2 100644 --- a/dhtest.c +++ b/dhtest.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/functions.c b/functions.c index 67c773f..d55f365 100644 --- a/functions.c +++ b/functions.c @@ -328,7 +328,7 @@ int reset_dhopt_size() int set_rand_dhcp_xid() { if(dhcp_xid == 0) { - srand(time(NULL)); + srand(time(NULL) ^ (getpid() << 16)); dhcp_xid = rand() % 0xffffffff; } return 0;