]> git.proxmox.com Git - mirror_frr.git/commit - ripd/ripd.c
*: replace all random() calls
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 17 Apr 2020 13:35:15 +0000 (10:35 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 17 Apr 2020 23:57:43 +0000 (20:57 -0300)
commit5920b3eb38a6cfd1c9b87106aa7403171408f0bd
treefe6c96488ab537bebfeb07f658b4d500ba20c446
parent4110aa2cb342fb0f025746c4b7df7707f69334c5
*: replace all random() calls

Replace all `random()` calls with a function called `frr_weak_random()`
and make it clear that it is only supposed to be used for weak random
applications.

Use the annotation described by the Coverity Scan documentation to
ignore `random()` call warnings.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
24 files changed:
babeld/babel_interface.c
babeld/babeld.c
babeld/util.c
bfdd/bfd.c
bgpd/bgp_routemap.c
isisd/isis_misc.c
lib/command.c
lib/network.c
lib/network.h
lib/qobj.c
lib/skiplist.c
lib/typesafe.c
ospfd/ospf_lsa.c
ospfd/ospf_nsm.c
pimd/pim_iface.c
pimd/pim_pim.c
pimd/pim_upstream.c
ripd/ripd.c
ripngd/ripngd.c
tests/lib/test_checksum.c
tests/lib/test_zlog.c
watchfrr/watchfrr.c
zebra/irdp_interface.c
zebra/irdp_main.c