mirror of https://github.com/ARMmbed/mbed-os.git
MACRO the size of rand
parent
3bbdf3446d
commit
dbeded5fbb
|
@ -762,7 +762,7 @@ nRF5xSecurityManager& nRF5xSecurityManager::get_security_manager()
|
||||||
|
|
||||||
bool is_rand_invalid(const uint8_t* rand)
|
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]) {
|
if (rand[i]) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue