summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-05-26 01:04:05 +0000
committerderaadt <deraadt@openbsd.org>2002-05-26 01:04:05 +0000
commit75e5599588bdc7f43dd4419a2f3ee2371411746f (patch)
treecaafcd93b41a626508d2ec99dd27e8eb9e60f786
parentoops, major oops; moritz@jodeit.org (diff)
downloadwireguard-openbsd-75e5599588bdc7f43dd4419a2f3ee2371411746f.tar.xz
wireguard-openbsd-75e5599588bdc7f43dd4419a2f3ee2371411746f.zip
with XXX, note a place we could maybe use arc4random()
-rw-r--r--usr.sbin/bootpd/bootptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bootpd/bootptest.c b/usr.sbin/bootpd/bootptest.c
index 9d0e8478df2..0f17baf90d3 100644
--- a/usr.sbin/bootpd/bootptest.c
+++ b/usr.sbin/bootpd/bootptest.c
@@ -284,7 +284,7 @@ main(argc, argv)
bp = (struct bootp *) sndbuf;
bzero(bp, sizeof(*bp));
bp->bp_op = BOOTREQUEST;
- xid = (int32) getpid();
+ xid = (int32) getpid(); /* XXX should use arc4random()? */
bp->bp_xid = (u_int32) htonl(xid);
if (bp_file)
strlcpy(bp->bp_file, bp_file, BP_FILE_LEN);