From a2fd507f45612e120e2e9ae5982050aed1f3b48d Mon Sep 17 00:00:00 2001 From: Conor Patrick Date: Tue, 8 Oct 2019 11:52:55 -0400 Subject: [PATCH] typo --- targets/stm32l432/src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/stm32l432/src/device.c b/targets/stm32l432/src/device.c index 0cb91b2..54a51b4 100644 --- a/targets/stm32l432/src/device.c +++ b/targets/stm32l432/src/device.c @@ -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