Rely on HAVE_ARC4RANDOM_BUF for CloudABI

This commit is contained in:
Sebastian Pipping 2017-07-19 14:23:50 +02:00
parent 5f1f1f1d98
commit 947879849f
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,8 @@ NOTE: We are looking for help with a few things:
Release 2.2.? ????????????????
Other changes:
#23 Test suite: Fix memory leaks
Rely on macro HAVE_ARC4RANDOM_BUF (rather than __CloudABI__)
for CloudABI
Special thanks to:
Rhodri James

View file

@ -846,7 +846,7 @@ generate_hash_secret_salt(XML_Parser parser)
{
unsigned long entropy;
(void)parser;
#if defined(HAVE_ARC4RANDOM_BUF) || defined(__CloudABI__)
#if defined(HAVE_ARC4RANDOM_BUF)
(void)gather_time_entropy;
arc4random_buf(&entropy, sizeof(entropy));
return ENTROPY_DEBUG("arc4random_buf", entropy);