From 7a325d277c1033322f87cc4bb5998c9350a4bd2a Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Sun, 16 Sep 2018 03:34:02 +0200 Subject: [PATCH] mkpasswd: ifdef out the entropy gathering code on Solaris --- mkpasswd.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mkpasswd.c b/mkpasswd.c index 743c269..0a888c7 100644 --- a/mkpasswd.c +++ b/mkpasswd.c @@ -373,6 +373,12 @@ inline void *get_random_bytes(const unsigned int count) return NULL; } +#elif defined HAVE_SOLARIS_CRYPT_GENSALT + +/* + * The Solaris version of crypt_gensalt() gathers the random data by itself. + */ + #elif defined RANDOM_DEVICE || defined HAVE_ARC4RANDOM_BUF || defined HAVE_GETENTROPY void *get_random_bytes(const unsigned int count)