diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-04-20 22:08:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 22:08:37 +0200 |
commit | 2d3d6521784253752cd56de39ebb0d4ec4ee3f5d (patch) | |
tree | 6e4f82ff01f2047a7447dd04ef09be466ef45a9d /isisd | |
parent | Merge pull request #6245 from sworleys/NHG-More-Topo (diff) | |
parent | *: replace all random() calls (diff) | |
download | frr-2d3d6521784253752cd56de39ebb0d4ec4ee3f5d.tar.xz frr-2d3d6521784253752cd56de39ebb0d4ec4ee3f5d.zip |
Merge pull request #6251 from opensourcerouting/cs-ignore
*: make coverity scan ignore random() calls
Diffstat (limited to 'isisd')
-rw-r--r-- | isisd/isis_misc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c index 96b76da92..25f7f8609 100644 --- a/isisd/isis_misc.c +++ b/isisd/isis_misc.c @@ -29,6 +29,7 @@ #include "hash.h" #include "if.h" #include "command.h" +#include "network.h" #include "isisd/isis_constants.h" #include "isisd/isis_common.h" @@ -413,7 +414,7 @@ unsigned long isis_jitter(unsigned long timer, unsigned long jitter) * most IS-IS timers are no longer than 16 bit */ - j = 1 + (int)((RANDOM_SPREAD * random()) / (RAND_MAX + 1.0)); + j = 1 + (int)((RANDOM_SPREAD * frr_weak_random()) / (RAND_MAX + 1.0)); k = timer - (timer * (100 - jitter)) / 100; |