summaryrefslogtreecommitdiffstats
path: root/src/create_pdf.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-13 12:02:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-13 12:02:29 +0000
commit0559008ce863c3709d5186f1b594cda0fcd877e8 (patch)
tree17cf6d9846ceaf765e443064d77f223c2a6a80be /src/create_pdf.c
parentAdding debian version 0.36-1. (diff)
downloadnwipe-0559008ce863c3709d5186f1b594cda0fcd877e8.tar.xz
nwipe-0559008ce863c3709d5186f1b594cda0fcd877e8.zip
Merging upstream version 0.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/create_pdf.c')
-rw-r--r--src/create_pdf.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/create_pdf.c b/src/create_pdf.c
index 754543b..b732ed7 100644
--- a/src/create_pdf.c
+++ b/src/create_pdf.c
@@ -63,6 +63,8 @@ int create_pdf( nwipe_context_t* ptr )
extern nwipe_prng_t nwipe_twister;
extern nwipe_prng_t nwipe_isaac;
extern nwipe_prng_t nwipe_isaac64;
+ extern nwipe_prng_t nwipe_add_lagg_fibonacci_prng;
+ extern nwipe_prng_t nwipe_xoroshiro256_prng;
/* Used by libconfig functions to retrieve data from nwipe.conf defined in conf.c */
extern config_t nwipe_cfg;
@@ -466,7 +468,21 @@ int create_pdf( nwipe_context_t* ptr )
}
else
{
- snprintf( prng_type, sizeof( prng_type ), "Unknown" );
+ if( nwipe_options.prng == &nwipe_add_lagg_fibonacci_prng )
+ {
+ snprintf( prng_type, sizeof( prng_type ), "Fibonacci" );
+ }
+ else
+ {
+ if( nwipe_options.prng == &nwipe_xoroshiro256_prng )
+ {
+ snprintf( prng_type, sizeof( prng_type ), "XORshiro256" );
+ }
+ else
+ {
+ snprintf( prng_type, sizeof( prng_type ), "Unknown" );
+ }
+ }
}
}
}