git: kernel - Make writing to /dev/urandom (to add entropy) faster

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Feb 2 19:30:52 PST 2020


commit 619a2f0ab4b543e800a43969e409627e56734f48
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Feb 2 19:29:30 2020 -0800

    kernel - Make writing to /dev/urandom (to add entropy) faster
    
    * Speed this up a bit by chunking up 256 byte blocks instead of
      64.  The SHA256 hash eats a lot of time, this should speed the
      boot-time entropy injection up by 4x.
    
    Reported-by: zrj

Summary of changes:
 sys/kern/kern_nrandom.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/619a2f0ab4b543e800a43969e409627e56734f48


-- 
DragonFly BSD source repository


More information about the Commits mailing list