random: Blocking API for accessing nonblocking_pool
authorStephan Mueller <smueller@chronox.de>
Mon, 25 May 2015 13:08:47 +0000 (15:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 09:51:53 +0000 (17:51 +0800)
commit16b369a91d0dd80be214b7f7801fbc51875454cc
tree651637281b51655197049065eeba784d3404ac6b
parent1d9de44e268d880cbe2d0bd3be1ef0661f93fd34
random: Blocking API for accessing nonblocking_pool

The added API calls provide a synchronous function call
get_blocking_random_bytes where the caller is blocked until
the nonblocking_pool is initialized.

CC: Andreas Steffen <andreas.steffen@strongswan.org>
CC: Theodore Ts'o <tytso@mit.edu>
CC: Sandy Harris <sandyinchina@gmail.com>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/random.c
include/linux/random.h