diff options
Diffstat (limited to 'src/win/util.c')
-rw-r--r-- | src/win/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/win/util.c b/src/win/util.c index 06fbefc4..9e3daac8 100644 --- a/src/win/util.c +++ b/src/win/util.c @@ -1747,10 +1747,13 @@ int uv_gettimeofday(uv_timeval64_t* tv) { return 0; } -int uv__random_rtlgenrandom(void* buf, size_t buflen) { +int uv__random_winrandom(void* buf, size_t buflen) { if (buflen == 0) return 0; + if (pProcessPrng != NULL && pProcessPrng(buf, buflen)) + return 0; + if (SystemFunction036(buf, buflen) == FALSE) return UV_EIO; |