We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26bda5c commit 17e7825Copy full SHA for 17e7825
src/random.c
@@ -93,7 +93,7 @@ void random_32_bytes(uint8_t* buf)
93
94
#ifndef TESTING
95
{ // mix in factory randomness
96
- uint8_t* factory_randomness = (uint8_t*)(FLASH_BOOT_START + FLASH_BOOT_LEN - 32);
+ const uint8_t* factory_randomness = (uint8_t*)(FLASH_BOOT_START + FLASH_BOOT_LEN - 32);
97
for (uint32_t i = 0; i < RANDOM_NUM_SIZE; i++) {
98
random[i] ^= factory_randomness[i];
99
}
0 commit comments