From: provos Date: Sun, 13 Apr 1997 21:25:34 +0000 (+0000) Subject: use res_random.c for ids X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a669f9a02ac778622813ef601c0ddecbd9405436;p=openbsd use res_random.c for ids --- diff --git a/usr.sbin/named/dig/Makefile b/usr.sbin/named/dig/Makefile index a85b88cf6e1..13307071f27 100644 --- a/usr.sbin/named/dig/Makefile +++ b/usr.sbin/named/dig/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 1997/03/14 03:40:32 downsj Exp $ +# $OpenBSD: Makefile,v 1.5 1997/04/13 21:25:34 provos Exp $ # $NetBSD: Makefile,v 1.2 1996/03/31 13:55:34 mrg Exp $ # from: $Id: Makefile,v 8.1 1994/12/15 06:23:45 vixie Exp @@ -9,7 +9,7 @@ PROG= dig SRCS= dig.c list.c subr.c debug.c send.c base64.c gethostnamadr.c res_comp.c \ res_debug.c res_init.c res_mkquery.c res_query.c res_send.c \ - inet_ntop.c inet_pton.c + res_random.c inet_ntop.c inet_pton.c CFLAGS+=${INCLUDE} ${CONFIG} -DDEBUG .include diff --git a/usr.sbin/named/host/host.c b/usr.sbin/named/host/host.c index c5b1a4d95bc..48c1d8396cc 100644 --- a/usr.sbin/named/host/host.c +++ b/usr.sbin/named/host/host.c @@ -1,4 +1,4 @@ -/* $OpenBSD: host.c,v 1.2 1997/03/12 10:41:53 downsj Exp $ */ +/* $OpenBSD: host.c,v 1.3 1997/04/13 21:25:50 provos Exp $ */ /* * Copyright (c) 1985, 1989 Regents of the University of California. @@ -540,7 +540,7 @@ input char *argv[]; _res.retrans = DEF_RETRANS; /* timeout in secs between retries */ /* initialize packet id */ - _res.id = getpid() & 0x7fff; + _res.id = res_randomid(); /* save new defaults */ new_res = _res;