mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 22:24:58 +03:00
move threadid and mi_get_default_heap to primitives
This commit is contained in:
parent
3579d3b861
commit
9b110090b2
9 changed files with 152 additions and 137 deletions
|
@ -168,6 +168,8 @@ If we cannot get good randomness, we fall back to weak randomness based on a tim
|
|||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#if defined(MI_USE_RTLGENRANDOM) // || defined(__cplusplus)
|
||||
// We prefer to use BCryptGenRandom instead of (the unofficial) RtlGenRandom but when using
|
||||
// dynamic overriding, we observed it can raise an exception when compiled with C++, and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue