mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
check if using bcryptgenrandom fixes windows pipeline
This commit is contained in:
parent
73ced777dd
commit
6503ad7a76
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ If we cannot get good randomness, we fall back to weak randomness based on a tim
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
|
||||||
#if defined(MI_USE_BCRYPTGENRANDOM)
|
#if !defined(MI_USE_RTLGENRANDOM)
|
||||||
// We would like to use BCryptGenRandom instead of RtlGenRandom but it can lead to a deadlock
|
// We prefer to use BCryptGenRandom instead of RtlGenRandom but it can lead to a deadlock
|
||||||
// under the VS debugger when using dynamic overriding.
|
// under the VS debugger when using dynamic overriding.
|
||||||
#pragma comment (lib,"bcrypt.lib")
|
#pragma comment (lib,"bcrypt.lib")
|
||||||
#include <bcrypt.h>
|
#include <bcrypt.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue