diff options
| author | Ramsay Jones <ramsay@ramsayjones.plus.com> | 2025-04-17 00:18:33 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-16 20:43:45 -0700 |
| commit | 70ef34c8d8001e677a346666f32040adfa90e89c (patch) | |
| tree | 959b6d5dca93a4e55c672607a153b4bd75f3e5f8 | |
| parent | 50dec7c566d87838aaaa6017b5fb10b0f1cc8af7 (diff) | |
| download | git-70ef34c8d8001e677a346666f32040adfa90e89c.tar.gz | |
config.mak.uname: add arc4random to the cygwin build
The arc4random_buf() function has been available in cygwin since
about 2016 (somewhere in the v2.x branch). Set the CSPRNG_METHOD
build variable to 'arc4random', in the cygwin section, to enable
the use of this cryptographically-secure pseudorandom number
function. Note that the autoconf and new meson builds also enable
this function.
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rw-r--r-- | config.mak.uname | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config.mak.uname b/config.mak.uname index e7bd07cf6e..330741eb5a 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -254,6 +254,7 @@ ifeq ($(uname_O),Cygwin) HAVE_CLOCK_GETTIME = YesPlease HAVE_CLOCK_MONOTONIC = YesPlease HAVE_SYSINFO = YesPlease + CSPRNG_METHOD = arc4random HAVE_ALLOCA_H = YesPlease NEEDS_LIBICONV = YesPlease NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes |
