-# $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
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 <bsd.prog.mk>
-/* $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.
_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;