Searched refs:rand_state (Results 1 – 2 of 2) sorted by relevance
69 struct rnd_state rand_state; in kernel_randomize_memory() local116 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()
51 struct guest_random_state rand_state; in memstress_guest_code() local58 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