backports: add support for prandom_bytes
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 3 Dec 2013 14:10:52 +0000 (15:10 +0100)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Fri, 6 Dec 2013 16:20:43 +0000 (17:20 +0100)
commit40ab1bac8c3680d726ee31fbdb590584ae99756f
tree126be6243c59e9dca975e27250a3b8f9eec3d16d
parent3e08333903329240b0d8f23ff81adf308d366e01
backports: add support for prandom_bytes

This was added in 3.8 and not used until now.
Since it it being used by the wireless stack, backport it.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[mcgrof: fixed renamed prandom_bytes_state to prandom_bytes on symbol]
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/backport-include/linux/random.h
backport/compat/compat-3.8.c