Fix error: implicit declaration of function 'arc4random'; did you mean 'random'? [-Werror=implicit-function-declaration]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-09-11 18:19:18 +08:00 committed by archer
parent 78728fc5eb
commit c27b470d39
2 changed files with 6 additions and 2 deletions

View File

@ -53,7 +53,9 @@ if(CONFIG_CRYPTO)
list(APPEND SRCS gmac.c)
list(APPEND SRCS cmac.c)
list(APPEND SRCS hmac.c)
list(APPEND SRCS idgen.c)
if(CONFIG_CRYPTO_RANDOM_POOL)
list(APPEND SRCS idgen.c)
endif()
list(APPEND SRCS key_wrap.c)
list(APPEND SRCS siphash.c)
list(APPEND SRCS hmac_buff.c)

View File

@ -57,7 +57,9 @@ CRYPTO_CSRCS += sha2.c
CRYPTO_CSRCS += gmac.c
CRYPTO_CSRCS += cmac.c
CRYPTO_CSRCS += hmac.c
CRYPTO_CSRCS += idgen.c
ifeq ($(CONFIG_CRYPTO_RANDOM_POOL),y)
CRYPTO_CSRCS += idgen.c
endif
CRYPTO_CSRCS += key_wrap.c
CRYPTO_CSRCS += siphash.c
CRYPTO_CSRCS += hmac_buff.c