summaryrefslogtreecommitdiff
path: root/sys/netiso/clnp_frag.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netiso/clnp_frag.c')
-rw-r--r--sys/netiso/clnp_frag.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netiso/clnp_frag.c b/sys/netiso/clnp_frag.c
index 95fc88ea25b..80eeec257f6 100644
--- a/sys/netiso/clnp_frag.c
+++ b/sys/netiso/clnp_frag.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clnp_frag.c,v 1.6 2003/12/10 07:22:43 itojun Exp $ */
+/* $OpenBSD: clnp_frag.c,v 1.7 2004/06/20 21:09:02 tholo Exp $ */
/* $NetBSD: clnp_frag.c,v 1.8 1996/04/13 01:34:23 cgd Exp $ */
/*-
@@ -875,8 +875,7 @@ static int troll_cnt;
float
troll_random()
{
- extern struct timeval time;
- long t = time.tv_usec % 100;
+ long t = random() % 100;
return ((float) t / (float) 100);
}