Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dprandom.h30 static inline u32 __seed(u32 x, u32 m) in __seed() function
44 state->s1 = __seed(i, 2U); in prandom_seed_state()
45 state->s2 = __seed(i, 8U); in prandom_seed_state()
46 state->s3 = __seed(i, 16U); in prandom_seed_state()
47 state->s4 = __seed(i, 128U); in prandom_seed_state()
/openbmc/linux/lib/
H A 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()