Searched refs:prandom_u32_below (Results 1 – 2 of 2) sorted by relevance
/linux/crypto/ |
H A D | testmgr.c | 898 static inline u32 prandom_u32_below(struct rnd_state *rng, u32 ceil) in prandom_u32_below() function 909 return prandom_u32_below(rng, 2); in prandom_bool() 915 return floor + prandom_u32_below(rng, ceil - floor + 1); in prandom_u32_inclusive() 922 unsigned int len = prandom_u32_below(rng, max_len + 1); in generate_random_length() 924 switch (prandom_u32_below(rng, 4)) { in generate_random_length() 937 if (len && prandom_u32_below(rng, 4) == 0) in generate_random_length() 947 bitpos = prandom_u32_below(rng, size * 8); in flip_random_bit() 954 buf[prandom_u32_below(rng, size)] ^= 0xff; in flip_random_byte() 964 if (prandom_u32_below(rng, 4) == 0) { in mutate_buffer() 965 num_flips = min_t(size_t, 1 << prandom_u32_below(rng, 8), in mutate_buffer() [all …]
|
/linux/kernel/locking/ |
H A D | test-ww_mutex.c | 394 static inline u32 prandom_u32_below(u32 ceil) in prandom_u32_below() function 417 r = prandom_u32_below(n + 1); in get_random_order()
|