diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-01 00:26:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-02-01 00:26:05 +0000 |
commit | c9fff73aa8ef985120e6ea84008f89325783e798 (patch) | |
tree | 028fda9ae5fafd0cd24883d47e540572b8c2674f /usr.sbin | |
parent | 3762bf8489078680d13997a124227bdaf33bbe8a (diff) |
randomize xid mode
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ypbind/ypbind.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c index f235f92bdb2..3394804545b 100644 --- a/usr.sbin/ypbind/ypbind.c +++ b/usr.sbin/ypbind/ypbind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypbind.c,v 1.19 1997/01/30 18:26:55 deraadt Exp $ */ +/* $OpenBSD: ypbind.c,v 1.20 1997/02/01 00:26:04 deraadt Exp $ */ /* * Copyright (c) 1996 Theo de Raadt <deraadt@theos.com> @@ -34,7 +34,7 @@ */ #ifndef LINT -static char rcsid[] = "$OpenBSD: ypbind.c,v 1.19 1997/01/30 18:26:55 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ypbind.c,v 1.20 1997/02/01 00:26:04 deraadt Exp $"; #endif #include <sys/param.h> @@ -1106,7 +1106,7 @@ unique_xid(ypdb) { int xid; - xid = (int)ypdb; /* XXX: & 0xffffffff; */ + xid = arc4random(); while (xid2ypdb(xid) != NULL) xid++; |