Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.129.6.1 retrieving revision 1.133 diff -u -p -r1.129.6.1 -r1.133 --- src/sys/netinet6/ip6_input.c 2011/06/06 09:09:59 1.129.6.1 +++ src/sys/netinet6/ip6_input.c 2011/11/19 22:51:29 1.133 @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.129.6.1 2011/06/06 09:09:59 jruoho Exp $ */ +/* $NetBSD: ip6_input.c,v 1.133 2011/11/19 22:51:29 tls Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.129.6.1 2011/06/06 09:09:59 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.133 2011/11/19 22:51:29 tls Exp $"); #include "opt_gateway.h" #include "opt_inet.h" @@ -85,6 +85,7 @@ __KERNEL_RCSID(0, "$NetBSD: ip6_input.c, #include #include #include +#include #include #include @@ -190,7 +191,7 @@ ip6_init(void) addrsel_policy_init(); nd6_init(); frag6_init(); - ip6_desync_factor = arc4random() % MAX_TEMP_DESYNC_FACTOR; + ip6_desync_factor = cprng_fast32() % MAX_TEMP_DESYNC_FACTOR; ip6_init2((void *)0); #ifdef GATEWAY