Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern include rnd.h only under kernel build.



details:   https://anonhg.NetBSD.org/src/rev/3511e4b6bc86
branches:  trunk
changeset: 537654:3511e4b6bc86
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Oct 04 07:33:26 2002 +0000

description:
include rnd.h only under kernel build.
caveat: arc4random() will not get stirred in bootstrap code.

diffstat:

 sys/lib/libkern/arc4random.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 181d63f90dde -r 3511e4b6bc86 sys/lib/libkern/arc4random.c
--- a/sys/lib/libkern/arc4random.c      Fri Oct 04 06:43:40 2002 +0000
+++ b/sys/lib/libkern/arc4random.c      Fri Oct 04 07:33:26 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arc4random.c,v 1.5 2002/10/04 02:37:23 itojun Exp $    */
+/*     $NetBSD: arc4random.c,v 1.6 2002/10/04 07:33:26 itojun Exp $    */
 
 /*-
  * THE BEER-WARE LICENSE
@@ -12,7 +12,11 @@
  * $FreeBSD: src/sys/libkern/arc4random.c,v 1.9 2001/08/30 12:30:58 bde Exp $
  */
 
+#ifdef _KERNEL
 #include "rnd.h"
+#else
+#define NRND 0
+#endif
 
 #include <sys/types.h>
 #include <sys/time.h>



Home | Main Index | Thread Index | Old Index