Searched refs:rand (Results 1 – 2 of 2) sorted by relevance
105 unsigned long rand; in init_espfix_random() local111 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()
88 unsigned long rand, memory_tb; in kernel_randomize_memory() local131 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()