Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2002 06:13:09 -0700 (PDT)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/libkern arc4random.c src/sys/sys libkern.h src/share/man/man9 random.9
Message-ID:  <200210111313.g9BDDA3E002348@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2002/10/11 06:13:09 PDT

  Modified files:
    sys/libkern          arc4random.c 
    sys/sys              libkern.h 
    share/man/man9       random.9 
  Log:
  Slight overhaul of arc4random() and friends.
  
  One bug fixed:  Use getmicrouptime() to trigger reseeds so that we
  cannot be tricked by a clock being stepped backwards.
  
  Express parameters in natural units and with natural names.
  
  Don't use struct timeval more than we need to.
  
  Various stylistic and readability polishing.
  
  Introduce arc4rand(void *ptr, u_int len, int reseed) function which
  returns a stream of pseudo-random bytes, observing the automatic
  reseed criteria as well as allowing forced reseeds.
  
  Rewrite arc4random() in terms of arc4rand().
  
  Sponsored by:   DARPA & NAI Labs.
  
  Revision  Changes    Path
  1.7       +24 -6     src/share/man/man9/random.9
  1.10      +28 -23    src/sys/libkern/arc4random.c
  1.34      +2 -1      src/sys/sys/libkern.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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