Skip to content
Commit 26893e7e authored by Sven Eckelmann's avatar Sven Eckelmann Committed by Simon Wunderlich
Browse files

batman-adv: Utilize prandom_u32_max for random [0, max) values



The kernel provides a function to create random values from 0 - (max-1)
since commit f337db64 ("random32: add prandom_u32_max and convert open
coded users"). Simply use this function to replace code sections which use
prandom_u32 and a handcrafted method to map it to the correct range.

Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
parent 9204a4f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment