summaryrefslogtreecommitdiffstats
path: root/pathd/pathd.c
diff options
context:
space:
mode:
authorJavier Garcia <javier.garcia@voltanet.io>2021-06-25 11:52:02 +0200
committerJavier Garcia <javier.garcia@voltanet.io>2021-06-25 11:52:02 +0200
commit2568524825fbdb75d2fd5ccce3265a83788b63db (patch)
tree9ef7bcfe1cfb8a2d76444cc94577bf403669282f /pathd/pathd.c
parentMerge pull request #8912 from gpnaveen/ospf_asbr_summary (diff)
downloadfrr-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.c2
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,