From 771626860adfc30c00f70d993ccb8f4d7c0c0c63 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 19 Jun 2015 19:26:18 -0400 Subject: 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 --- pimd/pimd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pimd/pimd.c') 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", -- cgit v1.2.3