random: use proper return types on get_random_{int,long}_wait()
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 13 May 2022 10:32:23 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 May 2022 07:29:17 +0000 (09:29 +0200)
commit29ed26a33436bb4bbfff5189a4cf3e34863d77dd
treef71571cfcdc9cdb69f7bd437f9a0987c46d301c2
parent55729575eaa990f5881891b5a2b9c0fec0ec24ea
random: use proper return types on get_random_{int,long}_wait()

commit 7c3a8a1db5e03d02cc0abb3357a84b8b326dfac3 upstream.

Before these were returning signed values, but the API is intended to be
used with unsigned values.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/random.h