Home
last modified time | relevance | path

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

/arch/x86/kernel/
Despfix_64.c105 unsigned long rand; in init_espfix_random() local
111 if (!arch_get_random_long(&rand)) { in init_espfix_random()
113 rand = rdtsc(); in init_espfix_random()
114 rand *= 0xc345c6b72fd16123UL; in init_espfix_random()
117 slot_random = rand % ESPFIX_STACKS_PER_PAGE; in init_espfix_random()
118 page_random = (rand / ESPFIX_STACKS_PER_PAGE) in init_espfix_random()
/arch/x86/mm/
Dkaslr.c88 unsigned long rand, memory_tb; in kernel_randomize_memory() local
131 prandom_bytes_state(&rand_state, &rand, sizeof(rand)); in kernel_randomize_memory()
133 entropy = (rand % (entropy + 1)) & P4D_MASK; in kernel_randomize_memory()
135 entropy = (rand % (entropy + 1)) & PUD_MASK; in kernel_randomize_memory()