diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-01 01:41:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-01 01:41:03 +0000 |
commit | 07339567bd082660cf357aa04a2ec4b49bc9f899 (patch) | |
tree | 02682c0341666b93d47e6f830ddaea7341e703c3 | |
parent | 83fc2089c69ef18c917b4646d20a5a0100ba72a1 (diff) |
comment cleanup
-rw-r--r-- | sys/dev/rnd.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/sys/dev/rnd.c b/sys/dev/rnd.c index 563f7ca9a92..9eaeab366ee 100644 --- a/sys/dev/rnd.c +++ b/sys/dev/rnd.c @@ -1,8 +1,6 @@ -/* $OpenBSD: rnd.c,v 1.119 2010/12/31 22:45:18 deraadt Exp $ */ +/* $OpenBSD: rnd.c,v 1.120 2011/01/01 01:41:02 deraadt Exp $ */ /* - * rnd.c -- A strong random number generator - * * Copyright (c) 1996, 1997, 2000-2002 Michael Shalayeff. * Copyright (c) 2008 Damien Miller. * Copyright Theodore Ts'o, 1994, 1995, 1996, 1997, 1998, 1999. @@ -181,11 +179,6 @@ #include <dev/rndvar.h> /* - * Master random number pool functions - * ----------------------------------- - */ - -/* * For the purposes of better mixing, we use the CRC-32 polynomial as * well to make a twisted Generalized Feedback Shift Register * @@ -403,12 +396,8 @@ extract_entropy(u_int8_t *buf, int nbytes) bzero(buffer, sizeof(buffer)); } -/* - * Kernel-side entropy crediting API and handling of entropy-bearing events - * ------------------------------------------------------------------------ - */ +/* Entropy crediting API and handling of entropy-bearing events */ -/* pIII/333 reported to have some drops w/ these numbers */ #define QEVLEN (1024 / sizeof(struct rand_event)) #define QEVSLOW (QEVLEN * 3 / 4) /* yet another 0.75 for 60-minutes hour /-; */ #define QEVSBITS 10 @@ -642,11 +631,6 @@ dequeue_randomness(void *v) } /* - * Exported kernel CPRNG API: arc4random() and friends - * --------------------------------------------------- - */ - -/* * Maximum number of bytes to serve directly from the main arc4random * pool. Larger requests are served from discrete arc4 instances keyed * from the main pool. @@ -728,7 +712,7 @@ arc4_stir(void) } /* - * called by timeout to mark arc4 for stirring, + * Called by timeout to mark arc4 for stirring, * actual stirring happens on any access attempt. */ static void @@ -854,11 +838,6 @@ arc4random_uniform(u_int32_t upper_bound) return r % upper_bound; } -/* - * random, srandom, urandom, arandom char devices - * ------------------------------------------------------- - */ - int randomopen(dev_t dev, int flag, int mode, struct proc *p) { |