logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_rng_get_bytes - Convenience function to generate random bytes

Arguments

buffer
           [out] filled with the random number

       outlen
           [in] buffer length

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       This convenience function generates random bytes of the size of outlen and stores them into the provided
       buffer.

       return size of random number generated upon success; -EIO - data cannot be obtained

Name

       kcapi_rng_get_bytes - Convenience function to generate random bytes

Synopsis

ssize_tkcapi_rng_get_bytes(uint8_t*buffer,size_toutlen);

See Also