Home
last modified time | relevance | path

Searched refs:local_rng_state (Results 1 – 1 of 1) sorted by relevance

/hal_rpi_pico-3.4.0/src/rp2_common/pico_rand/
Drand.c91 static __noinline uint64_t xoroshiro128ss(rng_128_t *local_rng_state) { in xoroshiro128ss() argument
92 const uint64_t s0 = local_rng_state->r[0]; in xoroshiro128ss()
93 uint64_t s1 = local_rng_state->r[1]; in xoroshiro128ss()
104 local_rng_state->r[0] = rotl(s0, 24) ^ s1 ^ (s1 << 16); // a, b in xoroshiro128ss()
105 local_rng_state->r[1] = rotl(s1, 37); // c in xoroshiro128ss()
176 rng_128_t local_rng_state = local_rng_state; in initialise_rand() local
180 local_rng_state.r[which] ^= splitmix64(ram_hash); in initialise_rand()
195 local_rng_state.r[which] ^= splitmix64(unique_id.board_id_u64); in initialise_rand()
210local_rng_state.r[which] ^= splitmix64(capture_additional_rosc_samples(8 * sizeof(rosc_samples))); in initialise_rand()
217 local_rng_state.r[which] ^= splitmix64(time_us_64()); in initialise_rand()
[all …]