diff options
author | Javier Garcia <javier.garcia@voltanet.io> | 2021-06-25 11:52:02 +0200 |
---|---|---|
committer | Javier Garcia <javier.garcia@voltanet.io> | 2021-06-25 11:52:02 +0200 |
commit | 2568524825fbdb75d2fd5ccce3265a83788b63db (patch) | |
tree | 9ef7bcfe1cfb8a2d76444cc94577bf403669282f /pathd/pathd.c | |
parent | Merge pull request #8912 from gpnaveen/ospf_asbr_summary (diff) | |
download | frr-2568524825fbdb75d2fd5ccce3265a83788b63db.tar.xz frr-2568524825fbdb75d2fd5ccce3265a83788b63db.zip |
pathd: coverity msg , frr_weak_random instead rand.
Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
Diffstat (limited to 'pathd/pathd.c')
-rw-r--r-- | pathd/pathd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathd/pathd.c b/pathd/pathd.c index 022813a49..90b872728 100644 --- a/pathd/pathd.c +++ b/pathd/pathd.c @@ -666,7 +666,7 @@ struct srte_candidate *srte_candidate_add(struct srte_policy *policy, candidate->preference = preference; candidate->policy = policy; candidate->type = SRTE_CANDIDATE_TYPE_UNDEFINED; - candidate->discriminator = rand(); + candidate->discriminator = frr_weak_random(); candidate->protocol_origin = origin; if (originator != NULL) { strlcpy(candidate->originator, originator, |