diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-06-19 19:26:19 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-29 20:24:55 -0400 |
| commit | b06fd12526849dd65836a1899a4cabca4525a96d (patch) | |
| tree | 6f119eca0a370de7b38255c61b67b9765131e9b9 /lib/command.c | |
| parent | d1265948c36afc6bc0c6bac03c7c1488851defb1 (diff) | |
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 'lib/command.c')
| -rw-r--r-- | lib/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c index 85506adefe..d080d6cc0b 100644 --- a/lib/command.c +++ b/lib/command.c @@ -4209,7 +4209,7 @@ cmd_init (int terminal) vrf_install_commands (); } - srand(time(NULL)); + srandom(time(NULL)); } static void |
