From dbeded5fbb1a06ac0e4b671f9ce6ef0a52ac4ea2 Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Wed, 8 Aug 2018 14:26:31 +0100 Subject: [PATCH] MACRO the size of rand --- .../TARGET_NRF52/source/nRF5xPalSecurityManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source/nRF5xPalSecurityManager.cpp b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source/nRF5xPalSecurityManager.cpp index 997f8e7d11..c4e5d2f867 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source/nRF5xPalSecurityManager.cpp +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source/nRF5xPalSecurityManager.cpp @@ -762,7 +762,7 @@ nRF5xSecurityManager& nRF5xSecurityManager::get_security_manager() bool is_rand_invalid(const uint8_t* rand) { - for (int i = 0; i < 8; ++i) { + for (int i = 0; i < BLE_GAP_SEC_RAND_LEN; ++i) { if (rand[i]) { return false; }