mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
Merge pull request #198 from devnexen/arc4random_api_apple
enable arc4random abi under apple
This commit is contained in:
commit
165734939b
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ static bool os_random_buf(void* buf, size_t buf_len) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
#elif defined(ANDROID) || defined(XP_DARWIN) || defined(__DragonFly__) || \
|
#elif defined(ANDROID) || defined(XP_DARWIN) || defined(__APPLE__) || defined(__DragonFly__) || \
|
||||||
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
|
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
|
||||||
defined(__wasi__)
|
defined(__wasi__)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -325,4 +325,4 @@ static void chacha_test(void)
|
||||||
chacha_block(&r);
|
chacha_block(&r);
|
||||||
mi_assert_internal(array_equals(r.output, r_out, 16));
|
mi_assert_internal(array_equals(r.output, r_out, 16));
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue