@@ -10,8 +10,13 @@ * ? generates passwords * → mkpw is unlikely to be portable to non-POSIX * systems, but should run fine on Linux as well * as BSDs with getrandom() support. + * ! for getrandom() to work with the version of + * libc on my android phone, the getrandom() call + * had to be converted to use the syscall() + * interface. this is unlikely to cause problems, + * but should be kept in mind. */ #include #include @@ -46,8 +51,10 @@ fail = 1, bad_user, bad_option, bad_syntax, + bad_entropy, + bad_copy, bad_usage = 64, /* fleabsd idiom */ } bad; typedef _Bool bool; @@ -198,9 +205,10 @@ unsigned char noise[len]; for (size_t i = 0; i