(res_randomid): Don't call gettimeofday here.
authordrepper <drepper>
Mon, 4 Sep 2006 17:59:54 +0000 (17:59 +0000)
committerdrepper <drepper>
Mon, 4 Sep 2006 17:59:54 +0000 (17:59 +0000)
resolv/res_init.c

index f881060..b5a03d1 100644 (file)
@@ -537,10 +537,7 @@ net_mask(in)               /* XXX - should really use system's version of this */
 
 u_int
 res_randomid(void) {
-       struct timeval now;
-
-       __gettimeofday(&now, NULL);
-       return (0xffff & (now.tv_sec ^ now.tv_usec ^ __getpid()));
+       return 0xffff & __getpid();
 }
 #ifdef _LIBC
 libc_hidden_def (__res_randomid)