diff options
author | Elliott Hughes <enh@google.com> | 2015-07-08 08:54:37 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-07-08 08:54:37 -0700 |
commit | 980b075de74bf2261bafc07ca1b1f8427eeb023d (patch) | |
tree | 5fb06c2f822a3c9005200576ff1011fd1206083c /evutil_rand.c | |
parent | 5142b74f25682b507a25464532824b5e612601db (diff) | |
download | libevent-980b075de74bf2261bafc07ca1b1f8427eeb023d.tar.gz |
Fix libevent build.
One problematic call is already guarded by a configuration macro;
the other will need pushing upstream.
Change-Id: I7f25a0347e7c011c7c1dc3da562dfabf40e624f1
Diffstat (limited to 'evutil_rand.c')
-rw-r--r-- | evutil_rand.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/evutil_rand.c b/evutil_rand.c index 284341c..2003d1b 100644 --- a/evutil_rand.c +++ b/evutil_rand.c @@ -174,7 +174,9 @@ evutil_secure_rng_get_bytes(void *buf, size_t n) void evutil_secure_rng_add_bytes(const char *buf, size_t n) { +#if !defined(__BIONIC__) /* bionic and OpenBSD removed this; it's a no-op in their current implementation. */ arc4random_addrandom((unsigned char*)buf, n>(size_t)INT_MAX ? INT_MAX : (int)n); +#endif } |