diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2025-07-16 20:18:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-16 20:18:29 +0200 |
commit | 7484ab251f58fdbc4fbc4313de70a7696e8c02b9 (patch) | |
tree | b6e0595cd15b619a2b27ec1c194b342325b3e00a /src/win/util.c | |
parent | 917c1ad1d1dee1c714d001e8fd1f276a6e06dd52 (diff) | |
download | libuv-v1.x.tar.gz libuv-v1.x.zip |
Refs: https://github.com/libuv/libuv/pull/2762#issuecomment-3065018271
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; |