squid: update to 6.13
[openadk.git] / package / gatling / patches / patch-http_c
blob7e7c9ff939273b2fe66f865c7e2d65ef9892a072
1 --- gatling-0.16.orig/http.c    2020-11-26 16:36:13.000000000 +0100
2 +++ gatling-0.16/http.c 2024-02-23 05:17:40.115857819 +0100
3 @@ -2202,16 +2202,9 @@ static void get_md5_randomness(const uin
4    static int initialized;
5    if (!initialized) {
6      unsigned char buf[16];
7 -#if defined(__linux__) || defined(__OpenBSD__)
8 -    if (getentropy(buf, sizeof buf)) {
9 -      buffer_putsflush(buffer_2, "getentropy failed (should never happen)\n");
10 -      // carry on with bad randomness
11 -    }
12 -#else
13      int fd=open("/dev/urandom",O_RDONLY);
14      read(fd,buf,16);
15      close(fd);
16 -#endif
17      MD5Init(&md5_ctx);
18      MD5Update(&md5_ctx,buf,16);
19      initialized=1;