diff options
author | Nicholas Tay <nick@windblume.net> | 2024-04-16 21:46:14 +1000 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2024-04-16 21:46:14 +1000 |
commit | e6e6ab5f69c9669376d9ad649f300fb080c1a810 (patch) | |
tree | 7be58f1255b99630690de512820a11f77be7adcc | |
parent | 96f6d594e6c36b03431c3f7d560de8f684c71927 (diff) | |
download | passgen-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
Diffstat (limited to '')
-rw-r--r-- | passgen.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() */ |