Searched refs:rand (Results 1 – 2 of 2) sorted by relevance
97 unsigned long rand; in init_espfix_random() local103 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()
78 unsigned long rand, memory_tb; in kernel_randomize_memory() local136 prandom_bytes_state(&rand_state, &rand, sizeof(rand)); in kernel_randomize_memory()137 entropy = (rand % (entropy + 1)) & PUD_MASK; in kernel_randomize_memory()