1 diff --git a/ipc/chromium/src/third_party/libevent/evutil_rand.c b/ipc/chromium/src/third_party/libevent/evutil_rand.c
2 index 3bab23121..c1e8a98ef 100644
3 --- a/ipc/chromium/src/third_party/libevent/evutil_rand.c
4 +++ b/ipc/chromium/src/third_party/libevent/evutil_rand.c
6 #include "util-internal.h"
7 #include "evthread-internal.h"
9 -#ifdef _EVENT_HAVE_ARC4RANDOM
10 +#if _EVENT_HAVE_ARC4RANDOM
14 @@ -58,7 +58,7 @@ evutil_secure_rng_global_setup_locks_(const int enable_locks)
16 ev_arc4random_buf(void *buf, size_t n)
18 -#if defined(_EVENT_HAVE_ARC4RANDOM_BUF) && !(defined(__APPLE__) || defined(__ANDROID__))
19 +#if _EVENT_HAVE_ARC4RANDOM_BUF && !(defined(__APPLE__) || defined(__ANDROID__))
20 arc4random_buf(buf, n);
22 unsigned char *b = buf;
23 @@ -139,7 +139,7 @@ evutil_secure_rng_get_bytes(void *buf, size_t n)
24 ev_arc4random_buf(buf, n);
27 -#if !defined(__OpenBSD__) && !defined(ANDROID)
30 evutil_secure_rng_add_bytes(const char *buf, size_t n)
32 diff --git a/ipc/chromium/src/third_party/libevent/include/event2/util.h b/ipc/chromium/src/third_party/libevent/include/event2/util.h
33 index 42a28adcb..ed6b6207f 100644
34 --- a/ipc/chromium/src/third_party/libevent/include/event2/util.h
35 +++ b/ipc/chromium/src/third_party/libevent/include/event2/util.h
36 @@ -672,7 +672,7 @@ void evutil_secure_rng_get_bytes(void *buf, size_t n);
38 int evutil_secure_rng_init(void);
40 -#if !defined(__OpenBSD__) && !defined(ANDROID)
42 /** Seed the random number generator with extra random bytes.
44 You should almost never need to call this function; it should be
45 diff --git a/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h b/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
46 index 56ebd3aba..21717abed 100644
47 --- a/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
48 +++ b/ipc/chromium/src/third_party/libevent/linux/event2/event-config.h
50 /* #undef _EVENT_DISABLE_THREAD_SUPPORT */
52 /* Define to 1 if you have the `arc4random' function. */
53 -/* #undef _EVENT_HAVE_ARC4RANDOM */
54 +#define _EVENT_HAVE_ARC4RANDOM (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 36)
56 /* Define to 1 if you have the `arc4random_buf' function. */
57 -/* #undef _EVENT_HAVE_ARC4RANDOM_BUF */
58 +#define _EVENT_HAVE_ARC4RANDOM_BUF _EVENT_HAVE_ARC4RANDOM
60 /* Define to 1 if you have the <arpa/inet.h> header file. */
61 #define _EVENT_HAVE_ARPA_INET_H 1