mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-17 10:35:41 +00:00
Rely on HAVE_ARC4RANDOM_BUF for CloudABI
This commit is contained in:
parent
5f1f1f1d98
commit
947879849f
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue