Home
last modified time | relevance | path

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

/linux-6.1.9/lib/
Drandom32.c119 state->s1 = __seed(seeds[0], 2U); in prandom_seed_full_state()
120 state->s2 = __seed(seeds[1], 8U); in prandom_seed_full_state()
121 state->s3 = __seed(seeds[2], 16U); in prandom_seed_full_state()
122 state->s4 = __seed(seeds[3], 128U); in prandom_seed_full_state()
251 state->s1 = __seed(LCG(seed), 2U); in prandom_state_selftest_seed()
252 state->s2 = __seed(LCG(state->s1), 8U); in prandom_state_selftest_seed()
253 state->s3 = __seed(LCG(state->s2), 16U); in prandom_state_selftest_seed()
254 state->s4 = __seed(LCG(state->s3), 128U); in prandom_state_selftest_seed()
/linux-6.1.9/include/linux/
Dprandom.h35 static inline u32 __seed(u32 x, u32 m) in __seed() function
49 state->s1 = __seed(i, 2U); in prandom_seed_state()
50 state->s2 = __seed(i, 8U); in prandom_seed_state()
51 state->s3 = __seed(i, 16U); in prandom_seed_state()
52 state->s4 = __seed(i, 128U); in prandom_seed_state()