diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-05 10:02:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-05 10:02:32 +0000 |
commit | f0a11ae72cf8374195f1f05a38d0fc75ff97ca86 (patch) | |
tree | db3ff843dace8590bd5cbea677301d757cf202c0 /sbin/ping/ping.c | |
parent | 9969b488447e8047dfbfb5ee5447a71eaccb1640 (diff) |
getpid() is going to be OK in a few minutes
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r-- | sbin/ping/ping.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 80302651378..fe270619c58 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping.c,v 1.20 1997/06/02 08:08:01 deraadt Exp $ */ +/* $OpenBSD: ping.c,v 1.21 1997/06/05 10:02:31 deraadt Exp $ */ /* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: ping.c,v 1.20 1997/06/02 08:08:01 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ping.c,v 1.21 1997/06/05 10:02:31 deraadt Exp $"; #endif #endif /* not lint */ @@ -340,7 +340,7 @@ main(argc, argv) for (i = 8; i < datalen; ++i) *datap++ = i; - ident = (getpid() & 0x00FF) | (arc4random() & 0xFF00); + ident = getpid() & 0xFFFF; if (options & F_SADDR) { if (IN_MULTICAST(ntohl(to->sin_addr.s_addr))) |