mirror of
https://github.com/rfc1036/whois.git
synced 2026-08-01 07:20:13 +00:00
mkpasswd: fix compile time error with HAVE_ARC4RANDOM_BUF
Patch from MacPorts.
This commit is contained in:
parent
b1cf371706
commit
4ac83a5f49
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user