aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2024-04-16 21:46:14 +1000
committerNicholas Tay <nick@windblume.net>2024-04-16 21:46:14 +1000
commite6e6ab5f69c9669376d9ad649f300fb080c1a810 (patch)
tree7be58f1255b99630690de512820a11f77be7adcc
parent96f6d594e6c36b03431c3f7d560de8f684c71927 (diff)
downloadpassgen-e6e6ab5f69c9669376d9ad649f300fb080c1a810.tar.gz
passgen-e6e6ab5f69c9669376d9ad649f300fb080c1a810.tar.bz2
passgen-e6e6ab5f69c9669376d9ad649f300fb080c1a810.zip
Allow way to force build weak rng mode via define
This is to help try out random things with the weak rng with dosbox and whatever. Trying to find a way to generate some decent entropy there and compare with modern linux
-rw-r--r--passgen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/passgen.c b/passgen.c
index 5837a72..ce07d5a 100644
--- a/passgen.c
+++ b/passgen.c
@@ -7,6 +7,7 @@
#define VERSION "0.1.1"
+#ifndef NO_PLATFORM_CRYPT
#if defined (__linux__) \
|| defined (__APPLE__) \
|| defined (__FreeBSD__) \
@@ -16,6 +17,7 @@
|| defined(__CYGWIN__)
# define USE_WINCRYPT
#endif
+#endif
/* getentropy() vs rand()+time()+getpid() */