archrelease: copy trunk to extra-x86_64
[arch-packages.git] / firefox / trunk / arc4random.diff
blobc877d54c16856dab8cae2cef36e2775096681fa4
1 diff --git i/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h w/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
2 index 101d39d455107..3764806240f9f 100644
3 --- i/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
4 +++ w/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
5 @@ -30,13 +30,13 @@
6 /* #undef EVENT__HAVE_AFUNIX_H 1 */
8 /* Define to 1 if you have the `arc4random' function. */
9 -/* #undef EVENT__HAVE_ARC4RANDOM */
10 +#define EVENT__HAVE_ARC4RANDOM 1
12 /* Define to 1 if you have the `arc4random_addrandom' function. */
13 /* #undef EVENT__HAVE_ARC4RANDOM_ADDRANDOM */
15 /* Define to 1 if you have the `arc4random_buf' function. */
16 -/* #undef EVENT__HAVE_ARC4RANDOM_BUF */
17 +#define EVENT__HAVE_ARC4RANDOM_BUF 1
19 /* Define to 1 if you have the <arpa/inet.h> header file. */
20 #define EVENT__HAVE_ARPA_INET_H 1
21 diff --git i/toolkit/crashreporter/client/ping.cpp w/toolkit/crashreporter/client/ping.cpp
22 index 57cf85de80b79..93a2f6e80ad0b 100644
23 --- i/toolkit/crashreporter/client/ping.cpp
24 +++ w/toolkit/crashreporter/client/ping.cpp
25 @@ -53,7 +53,7 @@ static string GenerateUUID() {
27 CFRelease(uuid);
28 #elif defined(HAVE_ARC4RANDOM_BUF) // Android, BSD, ...
29 - arc4random_buf(id, sizeof(UUID));
30 + arc4random_buf(&id, sizeof(UUID));
31 #else // Linux
32 int fd = open("/dev/urandom", O_RDONLY);