Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2018 14:27:40 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339254 - head/contrib/libevent
Message-ID:  <201810091427.w99ERevB014893@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810091427.w99ERevB014893>