diff options
Diffstat (limited to 'ospf6d/ospf6_main.c')
-rw-r--r-- | ospf6d/ospf6_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c index 1afe84a7..11cd195f 100644 --- a/ospf6d/ospf6_main.c +++ b/ospf6d/ospf6_main.c @@ -21,6 +21,7 @@ #include <zebra.h> #include <lib/version.h> +#include <stdlib.h> #include "getopt.h" #include "thread.h" @@ -238,6 +239,9 @@ main (int argc, char *argv[], char *envp[]) /* Preserve name of myself. */ progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]); + /* Seed random number for LSA ID */ + srand (time(NULL)); + /* Command line argument treatment. */ while (1) { |