diff options
| author | David Lamparter <equinox@diac24.net> | 2020-05-01 10:59:53 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-02-01 17:08:13 +0100 |
| commit | 3c191fb1387ece2265b8ac7c1e102904148ebed9 (patch) | |
| tree | 7f1ca88a86022782b7cb145dd39a2a0cfa969ca3 /lib/network.c | |
| parent | 6968b038ebb0beeda99b7ed70f3f1c35383f1ee3 (diff) | |
lib: move frr_weak_random to header file
Makes more sense to have this as a static inline. Also I don't want to
be forced to link network.o into clippy ;)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/network.c')
| -rw-r--r-- | lib/network.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/network.c b/lib/network.c index d2482bd55e..411661a5e1 100644 --- a/lib/network.c +++ b/lib/network.c @@ -121,21 +121,3 @@ float ntohf(float net) { return htonf(net); } - -/** - * Helper function that returns a random long value. The main purpose of - * this function is to hide a `random()` call that gets flagged by coverity - * scan and put it into one place. - * - * The main usage of this function should be for generating jitter or weak - * random values for simple purposes. - * - * See 'man 3 random' for more information. - * - * \returns random long integer. - */ -long frr_weak_random(void) -{ - /* coverity[dont_call] */ - return random(); -} |
