aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-10-09 07:49:58 +0100
committerRon Yorston <rmy@pobox.com>2025-10-09 07:49:58 +0100
commit255e7ea4e2a0e3d28c0abf2750f42713eff711d7 (patch)
tree3319e84a7392f9787ed9f93d21d19fc496fd9240 /include
parent88fd5391b0b7bffda946b586adb1fef4d2412e5f (diff)
downloadbusybox-w32-255e7ea4e2a0e3d28c0abf2750f42713eff711d7.tar.gz
busybox-w32-255e7ea4e2a0e3d28c0abf2750f42713eff711d7.tar.bz2
busybox-w32-255e7ea4e2a0e3d28c0abf2750f42713eff711d7.zip
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)
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h1
1 files changed, 0 insertions, 1 deletions
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);
640ULONGLONG CompatGetTickCount64(void); 640ULONGLONG CompatGetTickCount64(void);
641#define GetTickCount64 CompatGetTickCount64 641#define GetTickCount64 CompatGetTickCount64
642 642
643ssize_t get_random_bytes(void *buf, ssize_t count);
644int enumerate_links(const char *file, char *name); 643int enumerate_links(const char *file, char *name);
645 644
646int unc_root_len(const char *dir) FAST_FUNC; 645int unc_root_len(const char *dir) FAST_FUNC;