libevent: eliminate in-tree usage of arc4random_addrandom

Apply r338059 to newly-added libevent 2.1.18.

Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2018-10-09 14:27:40 +00:00
parent c43e99fd14
commit a524d5b5cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339254

View file

@ -195,8 +195,6 @@ evutil_secure_rng_get_bytes(void *buf, size_t n)
void
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