diff options
author | daan <daan@effp.org> | 2022-11-02 10:56:13 -0700 |
---|---|---|
committer | daan <daan@effp.org> | 2022-11-02 10:56:13 -0700 |
commit | 3bf299cd2b17c4b6c8cc74482f47f491ff1784ca (patch) | |
tree | eed24c479a1075a1c7b59f7d8bc43f2df5192994 | |
parent | 6e0f10dfd8e5ffe01f3f85dc30b562b4c703098a (diff) |
add comment on crash on Windows server 2019
-rw-r--r-- | src/random.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/random.c b/src/random.c index d474a53..a5f5e6b 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 |