Skip to content

Commit

Permalink
net: rename random32 to prandom
Browse files Browse the repository at this point in the history
Commit 496f2f9 ("random32: rename random32 to prandom") renamed
random32() and srandom32() to prandom_u32() and prandom_seed()
respectively.

net_random() and net_srandom() need to be redefined with prandom_* in
order to finish the naming transition.

While I'm at it, enclose macro argument of net_srandom() with parenthesis.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Apr 30, 2013
1 parent 70e3ba7 commit 8d56436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ do { \
#define net_dbg_ratelimited(fmt, ...) \
net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__)

#define net_random() random32()
#define net_srandom(seed) srandom32((__force u32)seed)
#define net_random() prandom_u32()
#define net_srandom(seed) prandom_seed((__force u32)(seed))

extern int kernel_sendmsg(struct socket *sock, struct msghdr *msg,
struct kvec *vec, size_t num, size_t len);
Expand Down

0 comments on commit 8d56436

Please sign in to comment.