From 2568524825fbdb75d2fd5ccce3265a83788b63db Mon Sep 17 00:00:00 2001 From: Javier Garcia Date: Fri, 25 Jun 2021 11:52:02 +0200 Subject: [PATCH] pathd: coverity msg , frr_weak_random instead rand. Signed-off-by: Javier Garcia --- pathd/pathd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathd/pathd.c b/pathd/pathd.c index 022813a497..90b8727284 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, -- 2.39.5