diff options
author | Sven Eckelmann <sven@narfation.org> | 2020-04-13 21:23:29 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2020-04-21 10:07:31 +0200 |
commit | 26893e7e928e1790852b072edb9bff3c1309e111 (patch) | |
tree | d52f2653a1ea2c3ae24f44106156630c4db7263c /fs/ecryptfs | |
parent | batman-adv: trace: Drop unneeded types.h include (diff) | |
download | linux-26893e7e928e1790852b072edb9bff3c1309e111.tar.xz linux-26893e7e928e1790852b072edb9bff3c1309e111.zip |
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 f337db64af05 ("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: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'fs/ecryptfs')
0 files changed, 0 insertions, 0 deletions