mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-10 17:29:31 +03:00
merge from dev-slice
This commit is contained in:
commit
fdfdafebf5
1 changed files with 2 additions and 1 deletions
|
@ -168,7 +168,8 @@ If we cannot get good randomness, we fall back to weak randomness based on a tim
|
|||
#if defined(_WIN32)
|
||||
|
||||
#if defined(MI_USE_BCRYPTGENRANDOM)
|
||||
// We prefer BCryptGenRandom over RtlGenRandom
|
||||
// We would like to use BCryptGenRandom instead of RtlGenRandom but it can lead to a deadlock
|
||||
// under the VS debugger when using dynamic overriding.
|
||||
#pragma comment (lib,"bcrypt.lib")
|
||||
#include <bcrypt.h>
|
||||
static bool os_random_buf(void* buf, size_t buf_len) {
|
||||
|
|
Loading…
Add table
Reference in a new issue