Skip to content

Commit 13c527d

Browse files
committed
Merge remote-tracking branch 'benma/const'
2 parents dd04d50 + 17e7825 commit 13c527d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void random_32_bytes(uint8_t* buf)
9393

9494
#ifndef TESTING
9595
{ // mix in factory randomness
96-
uint8_t* factory_randomness = (uint8_t*)(FLASH_BOOT_START + FLASH_BOOT_LEN - 32);
96+
const uint8_t* factory_randomness = (uint8_t*)(FLASH_BOOT_START + FLASH_BOOT_LEN - 32);
9797
for (uint32_t i = 0; i < RANDOM_NUM_SIZE; i++) {
9898
random[i] ^= factory_randomness[i];
9999
}

0 commit comments

Comments
 (0)