From 416af44b441b85a2ab3863d3c353f982fc76db83 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Tue, 28 May 2002 10:34:12 +0000 Subject: remove #define for kame portability --- sys/netinet6/nd6_nbr.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/netinet6') 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); } -- cgit v1.2.3