svn commit: r338926 - projects/openssl111/contrib/libevent

Ed Maste emaste at FreeBSD.org
Tue Sep 25 17:41:49 UTC 2018


Author: emaste
Date: Tue Sep 25 17:41:48 2018
New Revision: 338926
URL: https://svnweb.freebsd.org/changeset/base/338926

Log:
  libevent: eliminate in-tree usage of arc4random_addrandom
  
  Apply r338059 to newly-added libevent 2.1.18.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  projects/openssl111/contrib/libevent/evutil_rand.c

Modified: projects/openssl111/contrib/libevent/evutil_rand.c
==============================================================================
--- projects/openssl111/contrib/libevent/evutil_rand.c	Tue Sep 25 15:25:42 2018	(r338925)
+++ projects/openssl111/contrib/libevent/evutil_rand.c	Tue Sep 25 17:41:48 2018	(r338926)
@@ -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-projects mailing list