Skip to content

Commit 17e7825

Browse files
committed
random: add const qualifier to var
1 parent 26bda5c commit 17e7825

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)