Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/x86/mm/
A Dkaslr.c69 struct rnd_state rand_state; in kernel_randomize_memory() local
116 prandom_seed_state(&rand_state, kaslr_get_random_long("Memory")); in kernel_randomize_memory()
126 prandom_bytes_state(&rand_state, &rand, sizeof(rand)); in kernel_randomize_memory()
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/
A Dmemstress.c51 struct guest_random_state rand_state; in memstress_guest_code() local
58 rand_state = new_guest_random_state(args->random_seed + vcpu_idx); in memstress_guest_code()
69 page = guest_random_u32(&rand_state) % pages; in memstress_guest_code()
75 if (guest_random_u32(&rand_state) % 100 < args->write_percent) in memstress_guest_code()

Completed in 5 milliseconds