Home
last modified time | relevance | path

Searched refs:get_random_int (Results 1 – 25 of 44) sorted by relevance

12

/linux/lib/
A Dtest_hexdump.c152 size_t len = get_random_int() % d + 1; in test_hexdump_set()
211 int rs = (get_random_int() % 2 + 1) * 16; in test_hexdump_overflow_set()
215 size_t len = get_random_int() % rs + gs; in test_hexdump_overflow_set()
226 rowsize = (get_random_int() % 2 + 1) * 16; in test_hexdump_init()
230 rowsize = (get_random_int() % 2 + 1) * 16; in test_hexdump_init()
A Dtest_min_heap.c86 values[i] = get_random_int(); in test_heapify_all()
119 temp = get_random_int(); in test_heap_push()
161 temp = get_random_int(); in test_heap_pop_push()
A Dcmdline_kunit.c79 sprintf(in, "%u%s", get_random_int() % 256, str); in cmdline_test_lead_int()
97 sprintf(in, "%s%u", str, get_random_int() % 256); in cmdline_test_tail_int()
A Dnodemask.c28 get_random_int() % w, MAX_NUMNODES); in node_random()
A Dtest_kasan.c1059 size = (get_random_int() % 1024) + 1; in match_all_not_assigned()
1068 order = (get_random_int() % 4) + 1; in match_all_not_assigned()
A Dtest-string_helpers.c590 get_random_int() % (UNESCAPE_ANY + 1), true); in test_string_helpers_init()
/linux/arch/s390/kernel/
A Dprocess.c216 sp -= get_random_int() & ~PAGE_MASK; in arch_align_stack()
222 return (get_random_int() & BRK_RND_MASK) << PAGE_SHIFT; in brk_rnd()
/linux/drivers/gpu/drm/i915/
A Di915_gem_gtt.c139 addr = get_random_int(); in random_offset()
142 addr |= get_random_int(); in random_offset()
/linux/drivers/media/test-drivers/vivid/
A Dvivid-touch-cap.c213 unsigned int rand = get_random_int(); in vivid_fill_buff_noise()
224 return get_random_int() % VIVID_PRESSURE_LIMIT; in get_random_pressure()
275 dev->tch_pat_random = get_random_int(); in vivid_fillbuff_tch()
/linux/include/linux/
A Drandom.h54 static inline unsigned int get_random_int(void) in get_random_int() function
/linux/arch/arm64/kernel/
A Dsyscall.c70 choose_random_kstack_offset(get_random_int() & 0x1FF); in invoke_syscall()
A Dprocess.c560 sp -= get_random_int() & ~PAGE_MASK; in arch_align_stack()
/linux/arch/parisc/kernel/
A Dprocess.c289 return (get_random_int() & BRK_RND_MASK) << PAGE_SHIFT; in brk_rnd()
A Dsys_parisc.c242 rnd = get_random_int() & MMAP_RND_MASK; in mmap_rnd()
249 return (get_random_int() & MMAP_RND_MASK) << PAGE_SHIFT; in arch_mmap_rnd()
/linux/arch/mips/kernel/
A Dvdso.c82 base += get_random_int() & (VDSO_RANDOMIZE_SIZE - 1); in vdso_base()
/linux/arch/s390/mm/
A Dmmap.c40 return (get_random_int() & MMAP_RND_MASK) << PAGE_SHIFT; in arch_mmap_rnd()
/linux/kernel/bpf/
A Dbloom_filter.c155 bloom->hash_seed = get_random_int(); in bloom_map_alloc()
/linux/arch/nds32/kernel/
A Dvdso.c106 offset = get_random_int() % (((end - start) >> PAGE_SHIFT) + 1); in vdso_random_addr()
/linux/kernel/locking/
A Dtest-ww_mutex.c402 r = get_random_int() % (n + 1); in get_random_order()
541 struct ww_mutex *lock = stress->locks + (get_random_int() % nlocks); in stress_one_work()
/linux/arch/x86/kernel/
A Dmodule.c56 (get_random_int() % 1024 + 1) * PAGE_SIZE; in get_module_load_offset()
/linux/arch/um/kernel/
A Dprocess.c362 sp -= get_random_int() % 8192; in arch_align_stack()
/linux/arch/arm/kernel/
A Dprocess.c371 offset = get_random_int() % slots; in sigpage_addr()
/linux/arch/x86/entry/vdso/
A Dvma.c330 offset = get_random_int() % (((end - start) >> PAGE_SHIFT) + 1); in vdso_addr()
/linux/drivers/gpu/drm/i915/selftests/
A Di915_selftest.c137 i915_selftest.random_seed = get_random_int(); in __run_selftests()
/linux/arch/sparc/vdso/
A Dvma.c357 offset = get_random_int() & (PTRS_PER_PTE - 1); in vdso_addr()

Completed in 41 milliseconds

12