diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-09-04 18:00:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-09-04 18:00:58 +0000 |
commit | 03eeff83892d66bd06f85eab3172ab4679273f6e (patch) | |
tree | 7498f2698a21722864477296bb1868c45cee2284 /resolv/res_init.c | |
parent | b80770b23f7c285fb7c04e3e86dc5f2bb2a1cf11 (diff) | |
download | glibc-03eeff83892d66bd06f85eab3172ab4679273f6e.zip glibc-03eeff83892d66bd06f85eab3172ab4679273f6e.tar.gz glibc-03eeff83892d66bd06f85eab3172ab4679273f6e.tar.bz2 |
* 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.
Diffstat (limited to 'resolv/res_init.c')
-rw-r--r-- | resolv/res_init.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/resolv/res_init.c b/resolv/res_init.c index f881060..b5a03d1 100644 --- a/resolv/res_init.c +++ b/resolv/res_init.c @@ -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) |