From b55b020a830bf26b87282d3dc60e77f46659f52c Mon Sep 17 00:00:00 2001 From: PartialVolume Date: Fri, 28 May 2021 19:33:43 +0100 Subject: [PATCH] Log the initialisation of the prng type Logs the specific prng that is initialised. --- src/prng.c | 4 ++++ src/version.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/prng.c b/src/prng.c index dd69f2d..57f7a24 100644 --- a/src/prng.c +++ b/src/prng.c @@ -53,6 +53,8 @@ int nwipe_u32tobuffer( u8* buffer, u32 rand, int len ) int nwipe_twister_init( NWIPE_PRNG_INIT_SIGNATURE ) { + nwipe_log( NWIPE_LOG_NOTICE, "Initialising Mersenne Twister prng" ); + if( *state == NULL ) { /* This is the first time that we have been called. */ @@ -91,6 +93,8 @@ int nwipe_isaac_init( NWIPE_PRNG_INIT_SIGNATURE ) int count; randctx* isaac_state = *state; + nwipe_log( NWIPE_LOG_NOTICE, "Initialising Isaac prng" ); + if( *state == NULL ) { /* This is the first time that we have been called. */ diff --git a/src/version.c b/src/version.c index a4556db..8dc78cf 100644 --- a/src/version.c +++ b/src/version.c @@ -4,7 +4,7 @@ * used by configure to dynamically assign those values * to documentation files. */ -const char* version_string = "0.30.005"; +const char* version_string = "0.30.006"; const char* program_name = "nwipe"; const char* author_name = "Martijn van Brummelen"; const char* email_address = "git@brumit.nl"; @@ -14,4 +14,4 @@ Modifications to original dwipe Copyright Andy Beverley \n\ This is free software; see the source for copying conditions.\n\ There is NO warranty; not even for MERCHANTABILITY or FITNESS\n\ FOR A PARTICULAR PURPOSE.\n"; -const char* banner = "nwipe 0.30.005"; +const char* banner = "nwipe 0.30.006";