Skip to content

Commit 70ef34c

Browse files
ramsay-jonesgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 50dec7c commit 70ef34c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config.mak.uname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ ifeq ($(uname_O),Cygwin)
254254
HAVE_CLOCK_GETTIME = YesPlease
255255
HAVE_CLOCK_MONOTONIC = YesPlease
256256
HAVE_SYSINFO = YesPlease
257+
CSPRNG_METHOD = arc4random
257258
HAVE_ALLOCA_H = YesPlease
258259
NEEDS_LIBICONV = YesPlease
259260
NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes

0 commit comments

Comments
 (0)