summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2020-04-13 21:23:29 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2020-04-21 10:07:31 +0200
commit26893e7e928e1790852b072edb9bff3c1309e111 (patch)
treed52f2653a1ea2c3ae24f44106156630c4db7263c /fs/ecryptfs
parentbatman-adv: trace: Drop unneeded types.h include (diff)
downloadlinux-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