MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_rnd_rng

Function get_rnd_rng

dpdk/app/test-fib/main.c:131–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129};
130
131static uint64_t
132get_rnd_rng(uint64_t l, uint64_t u)
133{
134 if (l == u)
135 return l;
136 else
137 return (rte_rand() % (u - l) + l);
138}
139
140static __rte_always_inline __attribute__((pure)) uint8_t
141bits_in_nh(uint8_t nh_sz)

Callers 2

gen_random_rt_4Function · 0.70
gen_random_rt_6Function · 0.70

Calls 1

rte_randFunction · 0.85

Tested by

no test coverage detected