diff options
author | Marco d'Itri <md@linux.it> | 2018-09-16 03:34:02 +0200 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2018-09-16 03:35:38 +0200 |
commit | 7a325d277c1033322f87cc4bb5998c9350a4bd2a (patch) | |
tree | 4be851cbacdfa92351112c12ecf7f48e71627d41 /mkpasswd.c | |
parent | 19e44ac2ec9d4245353de5e770b15a8653cbc5fb (diff) | |
download | whois-7a325d277c1033322f87cc4bb5998c9350a4bd2a.tar.gz |
mkpasswd: ifdef out the entropy gathering code on Solaris
Diffstat (limited to 'mkpasswd.c')
-rw-r--r-- | mkpasswd.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |