svn commit: r339254 - head/contrib/libevent

Ed Maste emaste at FreeBSD.org
Tue Oct 9 14:27:41 UTC 2018


Author: emaste
Date: Tue Oct  9 14:27:40 2018
New Revision: 339254
URL: https://svnweb.freebsd.org/changeset/base/339254

Log:
  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

Modified:
  head/contrib/libevent/evutil_rand.c

Modified: head/contrib/libevent/evutil_rand.c
==============================================================================
--- head/contrib/libevent/evutil_rand.c	Tue Oct  9 14:26:46 2018	(r339253)
+++ head/contrib/libevent/evutil_rand.c	Tue Oct  9 14:27:40 2018	(r339254)
@@ -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


More information about the svn-src-head mailing list