Browse Source

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 <jukkax@ssrc.tii.ae>
main
Jukka Laitinen 3 years ago committed by Beat Küng
parent
commit
026bd073b5
  1. 2
      platforms/nuttx/src/px4/common/nuttx_random.c

2
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); arc4random_buf(out, outlen);
return outlen; return outlen;
} }
#else
#error CONFIG_CRYPTO_RANDOM_POOL has to be defined
#endif #endif

Loading…
Cancel
Save