Poul-Henning Kamp 2c38619b52 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.
2002-10-11 13:13:08 +00:00
..
2002-10-10 00:32:55 +00:00
2002-07-02 01:03:10 +00:00
2002-05-29 17:45:44 +00:00
2002-01-09 11:43:48 +00:00
2002-03-18 10:43:49 +00:00
2002-01-09 11:43:48 +00:00
2002-01-09 11:43:48 +00:00
2002-10-10 00:32:55 +00:00
2002-05-16 05:21:58 +00:00
2002-09-16 19:53:51 +00:00
2002-05-16 05:21:58 +00:00
2002-02-18 00:21:05 +00:00
2002-01-10 09:20:07 +00:00
2002-10-10 00:32:55 +00:00
2002-01-09 11:43:48 +00:00
2002-09-18 20:04:30 +00:00
2002-05-30 13:33:59 +00:00
2001-07-30 22:14:23 +00:00
2002-03-18 10:59:58 +00:00
2001-12-04 14:28:38 +00:00
2002-05-30 13:33:59 +00:00
2002-03-18 10:43:49 +00:00
2002-04-02 16:41:11 +00:00
2002-03-16 18:10:40 +00:00
2002-05-29 18:00:23 +00:00
2002-08-13 14:57:33 +00:00
2002-08-13 15:01:26 +00:00
2002-05-16 05:21:58 +00:00
2002-05-16 05:21:58 +00:00
2001-12-14 09:25:11 +00:00
2002-01-09 11:43:48 +00:00
2002-08-25 07:13:05 +00:00
2002-04-12 04:23:22 +00:00
2002-03-16 17:26:07 +00:00
2002-03-18 11:08:53 +00:00
2001-07-30 22:14:23 +00:00
2001-07-30 22:14:23 +00:00
2002-04-05 08:05:11 +00:00
2001-12-16 07:46:15 +00:00
2002-10-10 00:32:55 +00:00
2002-09-18 09:34:01 +00:00
2002-09-18 09:34:01 +00:00
2002-03-18 16:40:07 +00:00
2002-08-15 13:11:35 +00:00