Files
termux-packages/packages/gatling/http.c.patch
termux-pacman-bot 94c4ac97a5 gatling: Bump to 0.16
2022-11-18 13:10:23 +00:00

12 lines
433 B
Diff

--- a/http.c
+++ b/http.c
@@ -2202,7 +2202,7 @@
static int initialized;
if (!initialized) {
unsigned char buf[16];
-#if defined(__linux__) || defined(__OpenBSD__)
+#if defined(__linux__) && (!defined(__ANDROID__) || __ANDROID_API__ >= 28) || defined(__OpenBSD__)
if (getentropy(buf, sizeof buf)) {
buffer_putsflush(buffer_2, "getentropy failed (should never happen)\n");
// carry on with bad randomness