Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netipsec add missing rnd_extract->cprng_fast conversion, ...



details:   https://anonhg.NetBSD.org/src/rev/5144d50daded
branches:  trunk
changeset: 771698:5144d50daded
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Nov 29 13:15:27 2011 +0000

description:
add missing rnd_extract->cprng_fast conversion, fixes build of
FAST_IPSEC kernels

diffstat:

 sys/netipsec/ipsec_osdep.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 1353541201bc -r 5144d50daded sys/netipsec/ipsec_osdep.h
--- a/sys/netipsec/ipsec_osdep.h        Tue Nov 29 11:12:26 2011 +0000
+++ b/sys/netipsec/ipsec_osdep.h        Tue Nov 29 13:15:27 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipsec_osdep.h,v 1.22 2008/01/20 18:09:12 joerg Exp $   */
+/*     $NetBSD: ipsec_osdep.h,v 1.23 2011/11/29 13:15:27 drochner Exp $        */
 /*     $FreeBSD: /repoman/r/ncvs/src/sys/netipsec/ipsec_osdep.h,v 1.1 2003/09/29 22:47:45 sam Exp $    */
 
 /*
@@ -86,13 +86,13 @@
 #endif /* __FreeBSD__ */
 
 #ifdef __NetBSD__
-#include <sys/rnd.h>
+#include <sys/cprng.h>
 static __inline u_int read_random(void *p, u_int len);
 
 static __inline u_int
 read_random(void *bufp, u_int len)
 {
-       return rnd_extract_data(bufp, len, RND_EXTRACT_ANY /*XXX FIXME */);
+       return cprng_fast(bufp, len);
 }
 #endif /* __NetBSD__ */
 



Home | Main Index | Thread Index | Old Index