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:
@ -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)
|
||||
|
Reference in New Issue
Block a user