diff --git a/subsys/random/rand32_handlers.c b/subsys/random/rand32_handlers.c index fe16a7a4e7d..96c99ca4784 100644 --- a/subsys/random/rand32_handlers.c +++ b/subsys/random/rand32_handlers.c @@ -22,7 +22,8 @@ static inline void z_vrfy_sys_rand_get(void *dst, size_t len) } #include -#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));