Crypto API Random Number API

crypto_alloc_rng — - allocate RNG handle
crypto_rng_alg — obtain name of RNG
crypto_free_rng — zeroize and free RNG handle
crypto_rng_get_bytes — get random number
crypto_rng_reset — re-initialize the RNG
crypto_rng_seedsize — obtain seed size of RNG

The random number generator API is used with the ciphers of type CRYPTO_ALG_TYPE_RNG (listed as type rng in /proc/crypto)