diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-06-19 19:26:18 -0400 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2015-06-21 14:39:22 +0100 |
commit | 771626860adfc30c00f70d993ccb8f4d7c0c0c63 (patch) | |
tree | 86335b9708c5d88c1709c36386bf72d04843d6ec /pimd/pimd.c | |
parent | 1ed8ce47b922b71f3b3cdd661e647bbe7ed2eca7 (diff) | |
download | quagga-771626860adfc30c00f70d993ccb8f4d7c0c0c63.tar.bz2 quagga-771626860adfc30c00f70d993ccb8f4d7c0c0c63.tar.xz |
PIMD: Fix code to use srandom/random
pimd rolled it's own solution to random #'s, that was not
terribly random. Rely on the underlying system to generate
random #'s for us
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pimd.c')
-rw-r--r-- | pimd/pimd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c index 78c3ff5d..3797d4fc 100644 --- a/pimd/pimd.c +++ b/pimd/pimd.c @@ -34,7 +34,6 @@ #include "pim_oil.h" #include "pim_pim.h" #include "pim_upstream.h" -#include "pim_rand.h" #include "pim_rpf.h" #include "pim_ssmpingd.h" @@ -83,7 +82,7 @@ static void pim_free() void pim_init() { - pim_rand_init(); + srandom(time(NULL)); if (!inet_aton(PIM_ALL_PIM_ROUTERS, &qpim_all_pim_routers_addr)) { zlog_err("%s %s: could not solve %s to group address: errno=%d: %s", |