Lines Matching refs:state
37 static uint32_t state[4]; variable
60 rc = entropy_get_entropy(entropy_driver, (uint8_t *)&state, sizeof(state)); in xoshiro128_init_state()
69 state[0] = k_cycle_get_32(); in xoshiro128_init_state()
70 state[1] = k_cycle_get_32() ^ 0x9b64c2b0; in xoshiro128_init_state()
71 state[2] = k_cycle_get_32() ^ 0x86d3d2d4; in xoshiro128_init_state()
72 state[3] = k_cycle_get_32() ^ 0xa00ae278; in xoshiro128_init_state()
78 const uint32_t result = rotl(state[0] + state[3], 7) + state[0]; in xoshiro128_next()
80 const uint32_t t = state[1] << 9; in xoshiro128_next()
82 state[2] ^= state[0]; in xoshiro128_next()
83 state[3] ^= state[1]; in xoshiro128_next()
84 state[1] ^= state[2]; in xoshiro128_next()
85 state[0] ^= state[3]; in xoshiro128_next()
87 state[2] ^= t; in xoshiro128_next()
89 state[3] = rotl(state[3], 11); in xoshiro128_next()