return twothirdsMD4Transform(daddr, hash);
}
+EXPORT_SYMBOL(secure_ipv6_port_ephemeral);
#endif
#if defined(CONFIG_IP_DCCP) || defined(CONFIG_IP_DCCP_MODULE)
*/
unsigned int get_random_int(void)
{
- unsigned int val = 0;
-
-#ifdef CONFIG_X86_HAS_TSC
- rdtscl(val);
-#endif
/*
* Use IP's RNG. It suits our purpose perfectly: it re-keys itself
* every second, from the entropy pool (and thus creates a limited
* drain on it), and uses halfMD4Transform within the second. We
* also mix it with jiffies and the PID:
*/
- return secure_ip_id(current->pid + jiffies + (int)val);
+ return secure_ip_id(current->pid + jiffies);
}
/*