mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 18:27:56 +08:00
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:
@@ -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)
|
||||
|
||||
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user