From 255e7ea4e2a0e3d28c0abf2750f42713eff711d7 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 9 Oct 2025 07:49:58 +0100 Subject: win32: use RtlGenRandom for /dev/urandom Use the (somewhat ancient) Microsoft RtlGenRandom() function to provide random data for /dev/urandom. Saves 176-240 bytes. (GitHub issue #519) --- include/mingw.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index debd22ef2..3192e0a09 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -640,7 +640,6 @@ int err_win_to_posix(void); ULONGLONG CompatGetTickCount64(void); #define GetTickCount64 CompatGetTickCount64 -ssize_t get_random_bytes(void *buf, ssize_t count); int enumerate_links(const char *file, char *name); int unc_root_len(const char *dir) FAST_FUNC; -- cgit v1.2.3-55-g6feb