diff options
| author | Ron Yorston <rmy@pobox.com> | 2025-10-09 07:49:58 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2025-10-09 07:49:58 +0100 |
| commit | 255e7ea4e2a0e3d28c0abf2750f42713eff711d7 (patch) | |
| tree | 3319e84a7392f9787ed9f93d21d19fc496fd9240 /include | |
| parent | 88fd5391b0b7bffda946b586adb1fef4d2412e5f (diff) | |
| download | busybox-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.h | 1 |
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); | |||
| 640 | ULONGLONG CompatGetTickCount64(void); | 640 | ULONGLONG CompatGetTickCount64(void); |
| 641 | #define GetTickCount64 CompatGetTickCount64 | 641 | #define GetTickCount64 CompatGetTickCount64 |
| 642 | 642 | ||
| 643 | ssize_t get_random_bytes(void *buf, ssize_t count); | ||
| 644 | int enumerate_links(const char *file, char *name); | 643 | int enumerate_links(const char *file, char *name); |
| 645 | 644 | ||
| 646 | int unc_root_len(const char *dir) FAST_FUNC; | 645 | int unc_root_len(const char *dir) FAST_FUNC; |
