mirror of https://github.com/ARMmbed/mbed-os.git
MACRO the size of rand
parent
c1ce511dff
commit
cbf1776f14
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue