1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* resolv/res_mkquery.c (res_nmkquery): Set hp->id to statp->id after

randomization rather than before.
	* resolv/res_init.c (res_randomid): Don't call gettimeofday here.
This commit is contained in:
Ulrich Drepper
2006-09-04 18:00:58 +00:00
parent b80770b23f
commit 03eeff8389
3 changed files with 11 additions and 12 deletions

View 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)