Closed roliver-rpi closed 2 weeks ago
See
// PICO_CONFIG: PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER, Enable/disable use of a bus performance counter as an entropy source, type=bool, default=1, group=pico_rand
#ifndef PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER
#define PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER 1
#endif
You can turn off use of a perf counter as an entropy source by setting PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER=0 in your compile definitions
pico_rand will hard_assert when attempting to initialise_rand() if it is unable to find any bus fabric performance counters that are not in their reset state.