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>
diff --git a/lib/command.c b/lib/command.c
index 3a59f24..641cf20 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -4144,7 +4144,7 @@
install_element (VIEW_NODE, &show_work_queues_cmd);
install_element (ENABLE_NODE, &show_work_queues_cmd);
}
- srand(time(NULL));
+ srandom(time(NULL));
}
static void