67 #ifndef PICO_RAND_ENTROPY_SRC_ROSC
68 #define PICO_RAND_ENTROPY_SRC_ROSC 1
72 #ifndef PICO_RAND_ENTROPY_SRC_TIME
73 #define PICO_RAND_ENTROPY_SRC_TIME 1
77 #ifndef PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER
78 #define PICO_RAND_ENTROPY_SRC_BUS_PERF_COUNTER 1
86 #ifndef PICO_RAND_SEED_ENTROPY_SRC_ROSC
87 #define PICO_RAND_SEED_ENTROPY_SRC_ROSC PICO_RAND_ENTROPY_SRC_ROSC
91 #ifndef PICO_RAND_SEED_ENTROPY_SRC_TIME
92 #define PICO_RAND_SEED_ENTROPY_SRC_TIME PICO_RAND_ENTROPY_SRC_TIME
96 #ifndef PICO_RAND_SEED_ENTROPY_SRC_BOARD_ID
97 #define PICO_RAND_SEED_ENTROPY_SRC_BOARD_ID 1
101 #ifndef PICO_RAND_SEED_ENTROPY_SRC_RAM_HASH
102 #define PICO_RAND_SEED_ENTROPY_SRC_RAM_HASH 1
110 #ifndef PICO_RAND_ROSC_BIT_SAMPLE_COUNT
111 #define PICO_RAND_ROSC_BIT_SAMPLE_COUNT 1
115 #ifndef PICO_RAND_MIN_ROSC_BIT_SAMPLE_TIME_US
117 #define PICO_RAND_MIN_ROSC_BIT_SAMPLE_TIME_US 10u
129 #ifndef PICO_RAND_BUS_PERF_COUNTER_EVENT
130 #define PICO_RAND_BUS_PERF_COUNTER_EVENT arbiter_sram5_perf_event_access
138 #ifndef PICO_RAND_RAM_HASH_END
139 #define PICO_RAND_RAM_HASH_END SRAM_END
142 #ifndef PICO_RAND_RAM_HASH_START
143 #define PICO_RAND_RAM_HASH_START (PICO_RAND_RAM_HASH_END - 1024u)
uint64_t get_rand_64(void)
Get 64-bit random number.
Definition: rand.c:247
void get_rand_128(rng_128_t *rand128)
Get 128-bit random number.
Definition: rand.c:296
uint32_t get_rand_32(void)
Get 32-bit random number.
Definition: rand.c:301