das 81be797065 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.  This could be improved upon, e.g., by setting a flag
in fork(), if it proves to be a problem.

This was discussed with secteam (simon, csjp, rwatson) in 2008, shortly
prior to my going out of town and forgetting all about it.  The conclusion
was that the problem with forks is worrisome, but it doesn't appear to
have introduced an actual vulnerability for any known programs.

The only significant remaining difference between our arc4random and
OpenBSD's is in how we seed the generator in arc4_stir().
2011-11-15 05:49:24 +00:00
..
MFC
2011-05-14 02:28:26 +00:00
2011-04-14 15:42:15 +00:00
2010-08-03 17:40:09 +00:00
2011-10-19 11:43:51 +00:00
2010-12-04 08:44:56 +00:00
2010-06-13 01:27:29 +00:00
2011-09-28 14:52:25 +00:00