]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r227519, r227520:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 12 Jun 2014 00:19:05 +0000 (00:19 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 12 Jun 2014 00:19:05 +0000 (00:19 +0000)
commite903cab478e8e12cfdcbb8d5ad9ed15f4f9506be
treeb6e26a03e5d90aef966993135e363533cf4941a8
parent5d03fe780f986d43446e0111f449549061b13436
MFC r227519, r227520:

r227519 (das)

Sync the style, comments, and variable names of arc4random.c with
OpenBSD's version (r1.22).  No functional changes, as verified with
md5.

r227520 (das)

Further reduce diffs with OpenBSD's arc4random.  The main functional
change here is to ensure that when a process forks after arc4random
is seeded, the parent and child don't observe the same random sequence.
OpenBSD's fix introduces some additional overhead in the form of a
getpid() call.

The only significant remaining difference between our arc4random and
OpenBSD's is in how we seed the generator in arc4_stir().

git-svn-id: svn://svn.freebsd.org/base/stable/8@267380 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/gen/arc4random.c