backport: Add an implementation of get_random_int() for <3.10 kernels.
authorSolomon Peachy <pizza@shaftnet.org>
Sat, 17 Aug 2013 13:02:56 +0000 (09:02 -0400)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 27 Aug 2013 18:15:28 +0000 (11:15 -0700)
commit5c34a9c8909cf7534e1298993cae574b682b8d5a
treeb8a7e90b0ab65224e6817da6d6049c58c9e19b7b
parentc871780b5afa182878884bf5ccd8df4817a2660f
backport: Add an implementation of get_random_int() for <3.10 kernels.

get_random_int() was present, but simply not exported for use in modules
until 3.10.  Implement it in terms of the more expensive get_random_bytes()

This is needed by the cw1200 driver.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/compat/backport-3.10.c