From e6e6ab5f69c9669376d9ad649f300fb080c1a810 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Tue, 16 Apr 2024 21:46:14 +1000 Subject: 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 --- passgen.c | 2 ++ 1 file changed, 2 insertions(+) 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() */ -- cgit