Home
last modified time | relevance | path

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

/arch/x86/kernel/
Despfix_64.c97 unsigned long rand; in init_espfix_random() local
103 if (!arch_get_random_long(&rand)) { in init_espfix_random()
105 rand = rdtsc(); in init_espfix_random()
106 rand *= 0xc345c6b72fd16123UL; in init_espfix_random()
109 slot_random = rand % ESPFIX_STACKS_PER_PAGE; in init_espfix_random()
110 page_random = (rand / ESPFIX_STACKS_PER_PAGE) in init_espfix_random()
/arch/x86/mm/
Dkaslr.c78 unsigned long rand, memory_tb; in kernel_randomize_memory() local
136 prandom_bytes_state(&rand_state, &rand, sizeof(rand)); in kernel_randomize_memory()
137 entropy = (rand % (entropy + 1)) & PUD_MASK; in kernel_randomize_memory()