Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/crypto/cprng_fast Include <sys/rnd.h>, don't copypasta d...
details: https://anonhg.NetBSD.org/src/rev/d46b5f24f0aa
branches: trunk
changeset: 331453:d46b5f24f0aa
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 11 03:47:49 2014 +0000
description:
Include <sys/rnd.h>, don't copypasta declare rnd_initial_entropy.
diffstat:
sys/crypto/cprng_fast/cprng_fast.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r e6e65c0cebf9 -r d46b5f24f0aa sys/crypto/cprng_fast/cprng_fast.c
--- a/sys/crypto/cprng_fast/cprng_fast.c Mon Aug 11 03:46:54 2014 +0000
+++ b/sys/crypto/cprng_fast/cprng_fast.c Mon Aug 11 03:47:49 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cprng_fast.c,v 1.4 2014/08/11 03:46:54 riastradh Exp $ */
+/* $NetBSD: cprng_fast.c,v 1.5 2014/08/11 03:47:49 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cprng_fast.c,v 1.4 2014/08/11 03:46:54 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cprng_fast.c,v 1.5 2014/08/11 03:47:49 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -39,6 +39,7 @@
#include <sys/cpu.h>
#include <sys/intr.h>
#include <sys/percpu.h>
+#include <sys/rnd.h>
/* ChaCha core */
@@ -214,8 +215,6 @@
static percpu_t *cprng_fast_percpu __read_mostly;
static void *cprng_fast_softint __read_mostly;
-extern int rnd_initial_entropy;
-
void
cprng_fast_init(void)
{
Home |
Main Index |
Thread Index |
Old Index