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>
diff --git a/pimd/pimd.c b/pimd/pimd.c
index 78c3ff5..3797d4f 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 @@
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",