diff --git a/sys/kern/subr_cprng.c b/sys/kern/subr_cprng.c index 676f554351de..4f07c238924d 100644 --- a/sys/kern/subr_cprng.c +++ b/sys/kern/subr_cprng.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_cprng.c,v 1.25 2014/08/14 16:28:30 riastradh Exp $ */ +/* $NetBSD: subr_cprng.c,v 1.26 2014/11/19 14:25:00 christos Exp $ */ /*- * Copyright (c) 2011-2013 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.25 2014/08/14 16:28:30 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.26 2014/11/19 14:25:00 christos Exp $"); #include #include @@ -50,7 +50,7 @@ __KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.25 2014/08/14 16:28:30 riastradh Ex #include #include #include -#if DEBUG +#if DIAGNOSTIC #include #endif @@ -67,7 +67,7 @@ static void cprng_strong_generate(struct cprng_strong *, void *, size_t); static void cprng_strong_reseed(struct cprng_strong *); static void cprng_strong_reseed_from(struct cprng_strong *, const void *, size_t, bool); -#if DEBUG +#if DIAGNOSTIC static void cprng_strong_rngtest(struct cprng_strong *); #endif @@ -447,12 +447,12 @@ cprng_strong_reseed_from(struct cprng_strong *cprng, /* XXX Fix nist_ctr_drbg API so this can't happen. */ panic("cprng %s: NIST CTR_DRBG reseed failed", cprng->cs_name); -#if DEBUG +#if DIAGNOSTIC cprng_strong_rngtest(cprng); #endif } -#if DEBUG +#if DIAGNOSTIC /* * Generate some output and apply a statistical RNG test to it. */