Skip to content

Commit cbf1776

Browse files
MACRO the size of rand
1 parent c1ce511 commit cbf1776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF52/source/nRF5xPalSecurityManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ nRF5xSecurityManager& nRF5xSecurityManager::get_security_manager()
762762

763763
bool is_rand_invalid(const uint8_t* rand)
764764
{
765-
for (int i = 0; i < 8; ++i) {
765+
for (int i = 0; i < BLE_GAP_SEC_RAND_LEN; ++i) {
766766
if (rand[i]) {
767767
return false;
768768
}

0 commit comments

Comments
 (0)