{"thread":{"id":"63128","subject":"[PATCH 11/12] config.mak.uname; add arc4random to the cygwin build","startedAt":"2025-03-15T02:49:08Z","lastAt":"2025-03-15T02:49:08Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":12},"messages":[{"id":"514341","messageId":"90accf50-324a-4bec-b219-f1ca522283cf@ramsayjones.plus.com","threadId":"63128","inReplyTo":null,"subject":"[PATCH 11/12] config.mak.uname; add arc4random to the cygwin build","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsayjones.plus.com","sentAt":"2025-03-15T02:49:06Z","receivedAt":"2025-03-15T02:49:08Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nThe arc4random_buf() function has been available in cygwin since\nabout 2016 (somewhere in the v2.x branch). Set the CSPRNG_METHOD\nbuild variable to 'arc4random', in the cygwin section, to enable\nthe use of this cryptographically-secure pseudorandom number\nfunction. Note that the autoconf and new meson builds also enable\nthis function.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>\n---\n config.mak.uname | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/config.mak.uname b/config.mak.uname\nindex 0e29341056..4f6770a5f4 100644\n--- a/config.mak.uname\n+++ b/config.mak.uname\n@@ -254,6 +254,7 @@ ifeq ($(uname_O),Cygwin)\n \tHAVE_CLOCK_GETTIME=YesPlease\n \tHAVE_CLOCK_MONOTONIC=YesPlease\n \tHAVE_SYSINFO = YesPlease\n+\tCSPRNG_METHOD = arc4random\n \tHAVE_ALLOCA_H = YesPlease\n \tNEEDS_LIBICONV = YesPlease\n \tNO_FAST_WORKING_DIRECTORY = UnfortunatelyYes\n-- \n2.49.0\n"}]}