Browse Source
It's not needed in 2.1.11, since this version checks for arc4random_addrandom in upstream.android-5
committed by
Leonid Plyushch
1 changed files with 0 additions and 14 deletions
@ -1,14 +0,0 @@ |
|||||
diff -u -r ../libevent-release-2.1.8-stable/evutil_rand.c ./evutil_rand.c
|
|
||||
--- ../libevent-release-2.1.8-stable/evutil_rand.c 2017-01-26 00:37:15.000000000 +0100
|
|
||||
+++ ./evutil_rand.c 2017-01-27 23:51:13.124764486 +0100
|
|
||||
@@ -195,8 +195,10 @@
|
|
||||
void |
|
||||
evutil_secure_rng_add_bytes(const char *buf, size_t n) |
|
||||
{ |
|
||||
+#ifndef __ANDROID__
|
|
||||
arc4random_addrandom((unsigned char*)buf, |
|
||||
n>(size_t)INT_MAX ? INT_MAX : (int)n); |
|
||||
+#endif
|
|
||||
} |
|
||||
|
|
||||
void |
|
Loading…
Reference in new issue