mkpasswd: fix compile time error with HAVE_ARC4RANDOM_BUF

Patch from MacPorts.
This commit is contained in:
Marco d'Itri 2017-02-26 04:29:11 +01:00
parent b1cf371706
commit 4ac83a5f49

View File

@ -394,7 +394,7 @@ void generate_salt(char *const buf, const unsigned int len)
unsigned char *entropy;
#if defined HAVE_ARC4RANDOM_BUF
void *entropy = NOFAIL(malloc(len));
entropy = NOFAIL(malloc(len));
arc4random_buf(entropy, len);
#else
entropy = get_random_bytes(len);