libevent: eliminate in-tree usage of arc4random_addrandom
Apply r338059 to newly-added libevent 2.1.18. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
9f9d314d11
commit
fb2f386360
@ -195,8 +195,6 @@ evutil_secure_rng_get_bytes(void *buf, size_t n)
|
|||||||
void
|
void
|
||||||
evutil_secure_rng_add_bytes(const char *buf, size_t n)
|
evutil_secure_rng_add_bytes(const char *buf, size_t n)
|
||||||
{
|
{
|
||||||
arc4random_addrandom((unsigned char*)buf,
|
|
||||||
n>(size_t)INT_MAX ? INT_MAX : (int)n);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user