[PATCH 6/6] baseband/fpga_5gnr: don't use rand()

Tyler Retzlaff roretzla at linux.microsoft.com
Fri Mar 1 19:11:42 CET 2024


On Fri, Mar 01, 2024 at 09:57:11AM -0800, Stephen Hemminger wrote:
> The function rand is very weak and should not be used.
> Use the DPDK rte_rand() which is seeded from entropy instead.
> 
> Coverity issue: 414987
> Fixes: b3d326e438f1 ("baseband/fpga_5gnr_fec: add FPGA mutex")
> Cc: hernan.vargas at intel.com
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---

Reviewed-by: Tyler Retzlaff <roretzla at linux.microsoft.com>



More information about the dev mailing list