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 e3190c6 + 0cd73df commit cde30c2Copy full SHA for cde30c2
components/esp_hw_support/hw_random.c
@@ -78,7 +78,7 @@ uint32_t IRAM_ATTR esp_random(void)
78
result ^= REG_READ(WDEV_RND_REG);
79
} while (ccount - last_ccount < cpu_to_apb_freq_ratio * APB_CYCLE_WAIT_NUM);
80
uint32_t current_rtc_timer_counter = (lp_timer_hal_get_cycle_count() & 0xFF);
81
- result ^= ((result ^ current_rtc_timer_counter) & 0xFF) << (i * 8);
+ result ^= (current_rtc_timer_counter << (i * 8));
82
}
83
#else
84
do {
0 commit comments