mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 14:18:42 +03:00
Fix _mi_prim_random_buf for wasm backend
This commit is contained in:
parent
c019eee52a
commit
bf8f14054c
1 changed files with 2 additions and 1 deletions
|
@ -249,7 +249,8 @@ bool _mi_prim_getenv(const char* name, char* result, size_t result_size) {
|
|||
//----------------------------------------------------------------
|
||||
|
||||
bool _mi_prim_random_buf(void* buf, size_t buf_len) {
|
||||
return false;
|
||||
int r = getentropy(buf, buf_len);
|
||||
return r == 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue