summaryrefslogtreecommitdiff
path: root/package/gatling/patches/patch-http_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-02-23 05:20:55 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-02-23 07:42:29 +0100
commit33a8651bb9397b1e2141a7c4019017f539668cf8 (patch)
tree862f83d6df020469a2ada8f2fd2f9766790bf4f8 /package/gatling/patches/patch-http_c
parent02f1582d6ec2ddf65ef6f9c7d7fa02613921a1bb (diff)
gatling: update to 0.16
Diffstat (limited to 'package/gatling/patches/patch-http_c')
-rw-r--r--package/gatling/patches/patch-http_c19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/gatling/patches/patch-http_c b/package/gatling/patches/patch-http_c
new file mode 100644
index 000000000..7e7c9ff93
--- /dev/null
+++ b/package/gatling/patches/patch-http_c
@@ -0,0 +1,19 @@
+--- gatling-0.16.orig/http.c 2020-11-26 16:36:13.000000000 +0100
++++ gatling-0.16/http.c 2024-02-23 05:17:40.115857819 +0100
+@@ -2202,16 +2202,9 @@ static void get_md5_randomness(const uin
+ static int initialized;
+ if (!initialized) {
+ unsigned char buf[16];
+-#if defined(__linux__) || defined(__OpenBSD__)
+- if (getentropy(buf, sizeof buf)) {
+- buffer_putsflush(buffer_2, "getentropy failed (should never happen)\n");
+- // carry on with bad randomness
+- }
+-#else
+ int fd=open("/dev/urandom",O_RDONLY);
+ read(fd,buf,16);
+ close(fd);
+-#endif
+ MD5Init(&md5_ctx);
+ MD5Update(&md5_ctx,buf,16);
+ initialized=1;