diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-06-20 01:26:19 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-30 02:24:55 +0200 |
commit | b06fd12526849dd65836a1899a4cabca4525a96d (patch) | |
tree | 6f119eca0a370de7b38255c61b67b9765131e9b9 /ospf6d/ospf6_main.c | |
parent | lib: include thread information in backtraces (diff) | |
download | frr-b06fd12526849dd65836a1899a4cabca4525a96d.tar.xz frr-b06fd12526849dd65836a1899a4cabca4525a96d.zip |
Quagga: Fix code to use srandom/random
Quagga was using a mix of srand/rand and srandom/random.
Consolidate to use srandom/random which are the POSIX
versions of random number generators
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_main.c')
-rw-r--r-- | ospf6d/ospf6_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c index 52dc6677f..84c98b885 100644 --- a/ospf6d/ospf6_main.c +++ b/ospf6d/ospf6_main.c @@ -243,7 +243,7 @@ main (int argc, char *argv[], char *envp[]) progname = ((p = strrchr (argv[0], '/')) ? ++p : argv[0]); /* Seed random number for LSA ID */ - srand (time(NULL)); + srandom (time(NULL)); /* Command line argument treatment. */ while (1) |