From 026bd073b5764cdb66d59cfc87becb483d68326e Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Wed, 20 Jul 2022 13:44:49 +0400 Subject: [PATCH] Don't error on CONFIG_CRYPTO_RANDOM_POOL not defined px4_secure_random can be implemented also outside NuttX for some platform Signed-off-by: Jukka Laitinen --- platforms/nuttx/src/px4/common/nuttx_random.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/platforms/nuttx/src/px4/common/nuttx_random.c b/platforms/nuttx/src/px4/common/nuttx_random.c index 26c2df3b41..1339aa9169 100644 --- a/platforms/nuttx/src/px4/common/nuttx_random.c +++ b/platforms/nuttx/src/px4/common/nuttx_random.c @@ -41,6 +41,4 @@ size_t px4_get_secure_random(uint8_t *out, arc4random_buf(out, outlen); return outlen; } -#else -#error CONFIG_CRYPTO_RANDOM_POOL has to be defined #endif