random: Fix sys_csrand_get build condition
z_impl_sys_csrand_get is implement if the system is build with either CONFIG_CTR_DRBG_CSPRNG_GENERATOR or CONFIG_HARDWARE_DEVICE_CS_GENERATOR. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
b30958e85f
commit
7ec7238eb5
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ static inline void z_vrfy_sys_rand_get(void *dst, size_t len)
|
|||
}
|
||||
#include <syscalls/sys_rand_get_mrsh.c>
|
||||
|
||||
#if defined(CONFIG_CTR_DRBG_CSPRNG_GENERATOR)
|
||||
#if defined(CONFIG_CTR_DRBG_CSPRNG_GENERATOR) || \
|
||||
defined(CONFIG_HARDWARE_DEVICE_CS_GENERATOR)
|
||||
static inline int z_vrfy_sys_csrand_get(void *dst, size_t len)
|
||||
{
|
||||
Z_OOPS(Z_SYSCALL_MEMORY_WRITE(dst, len));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue