diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-05-28 10:34:12 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-05-28 10:34:12 +0000 |
commit | 416af44b441b85a2ab3863d3c353f982fc76db83 (patch) | |
tree | c2a56a9ffbe3eee12e63b3e388230f61c570eb9a /sys | |
parent | dd54cc30c9ac5b59d0953f710a4f27a62e13f2ad (diff) |
remove #define for kame portability
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/nd6_nbr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 46efd28be0d..e3e75e321ad 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nd6_nbr.c,v 1.21 2002/03/15 09:44:56 itojun Exp $ */ +/* $OpenBSD: nd6_nbr.c,v 1.22 2002/05/28 10:34:11 itojun Exp $ */ /* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */ /* @@ -1075,12 +1075,10 @@ nd6_dad_start(ifa, tick) } else { int ntick; -#define random arc4random if (*tick == 0) - ntick = random() % (MAX_RTR_SOLICITATION_DELAY * hz); + ntick = arc4random() % (MAX_RTR_SOLICITATION_DELAY * hz); else - ntick = *tick + random() % (hz / 2); -#undef random + ntick = *tick + arc4random() % (hz / 2); *tick = ntick; nd6_dad_starttimer(dp, ntick); } |