This commit is contained in:
Conor Patrick 2019-10-08 11:52:55 -04:00
parent a58658e35d
commit a2fd507f45

View File

@ -430,7 +430,7 @@ uint32_t ctap_atomic_count(uint32_t amount)
// Use a random count [1-16].
uint8_t rng[1];
ctap_generate_rng(rng, 1);
amount = (rng[1] & 0x0f) + 1;
amount = (rng[0] & 0x0f) + 1;
}
for (offset = 0; offset < PAGE_SIZE/4; offset += 2) // wear-level the flash