cvs commit: src/sys/libkern arc4random.c

Mike Silbersack silby at
Thu Aug 14 23:37:25 PDT 2003

On Thu, 14 Aug 2003, Mike Silbersack wrote:

> silby       2003/08/14 23:34:47 PDT
>   FreeBSD src repository
>   Modified files:
>     sys/libkern          arc4random.c
>   Log:
>   Lock down arc4random so it can be safely called w/o Giant.
>   Minor code reorganization was required, but the only functional
>   change was that the first 1024 bytes of output are thrown out
>   after each reseed, rather than just the initial seed.
>   Revision  Changes    Path
>   1.12      +26 -17    src/sys/libkern/arc4random.c

This doesn't use per-cpu randomness pools or anything cool, but I decided
that easily verified locking was more important at this point.  (And I
doubt that it's a performance problem either way.)

Mike "Silby" Silbersack

More information about the cvs-src mailing list