diff options
Diffstat (limited to 'sbin/routed')
-rw-r--r-- | sbin/routed/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/routed/main.c b/sbin/routed/main.c index e57c8960ec4..e5b002c3ece 100644 --- a/sbin/routed/main.c +++ b/sbin/routed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.19 2005/03/23 18:06:07 jmc Exp $ */ +/* $OpenBSD: main.c,v 1.20 2008/04/13 00:22:17 djm Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -35,7 +35,7 @@ char copyright[] = #if !defined(lint) static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.19 2005/03/23 18:06:07 jmc Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.20 2008/04/13 00:22:17 djm Exp $"; #endif #include "defs.h" @@ -766,8 +766,8 @@ intvl_random(struct timeval *tp, /* put value here */ { tp->tv_sec = (time_t)(hi == lo ? lo - : (lo + arc4random() % ((1 + hi - lo)))); - tp->tv_usec = arc4random() % 1000000; + : (lo + arc4random_uniform(1 + hi - lo))); + tp->tv_usec = arc4random_uniform(1000000); } |