diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-06-25 19:15:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-25 19:15:30 -0400 |
| commit | ad1ea39d6027fed5ce4ff04e66c20ad49799f0a3 (patch) | |
| tree | 009d626915fc7068efa541fa87911528325905c7 /pathd/pathd.c | |
| parent | 31cd08c94ea55e007cb44d52adb3bf7050274df3 (diff) | |
| parent | 2568524825fbdb75d2fd5ccce3265a83788b63db (diff) | |
Merge pull request #8924 from volta-networks/fix_pcinit_coverity
pathd: coverity msg , frr_weak_random instead rand.
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 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, |
