Searched refs:__seed (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/lib/ |
D | random32.c | 119 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-v6.1/include/linux/ |
D | prandom.h | 49 static inline u32 __seed(u32 x, u32 m) in __seed() function 63 state->s1 = __seed(i, 2U); in prandom_seed_state() 64 state->s2 = __seed(i, 8U); in prandom_seed_state() 65 state->s3 = __seed(i, 16U); in prandom_seed_state() 66 state->s4 = __seed(i, 128U); in prandom_seed_state()
|