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.
2 parents dd04d50 + 17e7825 commit 13c527dCopy full SHA for 13c527d
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