summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-04-20 16:08:37 -0400
committerGitHub <noreply@github.com>2020-04-20 16:08:37 -0400
commit2d3d6521784253752cd56de39ebb0d4ec4ee3f5d (patch)
tree6e4f82ff01f2047a7447dd04ef09be466ef45a9d /lib/command.c
parente4195c02a7b4e96ce3dfaffd69ecc739ab1bbaaa (diff)
parent5920b3eb38a6cfd1c9b87106aa7403171408f0bd (diff)
Merge pull request #6251 from opensourcerouting/cs-ignore
*: make coverity scan ignore random() calls
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index 7abca5e70d..fbbf10c796 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -47,6 +47,7 @@
#include "hook.h"
#include "lib_errors.h"
#include "northbound_cli.h"
+#include "network.h"
DEFINE_MTYPE_STATIC(LIB, HOST, "Host config")
DEFINE_MTYPE(LIB, COMPLETION, "Completion item")
@@ -366,7 +367,7 @@ static char *zencrypt(const char *passwd)
gettimeofday(&tv, 0);
- to64(&salt[0], random(), 3);
+ to64(&salt[0], frr_weak_random(), 3);
to64(&salt[3], tv.tv_usec, 3);
salt[5] = '\0';