From 3bf299cd2b17c4b6c8cc74482f47f491ff1784ca Mon Sep 17 00:00:00 2001 From: daan Date: Wed, 2 Nov 2022 10:56:13 -0700 Subject: [PATCH] add comment on crash on Windows server 2019 --- src/random.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/random.c b/src/random.c index d474a53a..a5f5e6b8 100644 --- a/src/random.c +++ b/src/random.c @@ -172,6 +172,8 @@ If we cannot get good randomness, we fall back to weak randomness based on a tim // 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 // sometimes deadlocks when also running under the VS debugger. +// In contrast, issue #623 implies that on Windows Server 2019 we need to use BCryptGenRandom. +// To be continued.. #pragma comment (lib,"advapi32.lib") #define RtlGenRandom SystemFunction036 #ifdef __cplusplus