*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
*/
#ifndef RNGD__H
enum {
MAX_RNG_FAILURES = 25,
+ RNG_OK_CREDIT = 1000, /* ~1:1250 false positives */
};
/* Command line arguments and processing */
int random_step;
int fill_watermark;
- double poll_timeout;
- int quiet;
- int verbose;
- int daemon;
- int enable_tpm;
+ bool quiet;
+ bool verbose;
+ bool daemon;
+ bool enable_drng;
+ bool enable_tpm;
};
extern struct arguments *arguments;
int rng_fd;
bool disabled;
int failures;
+ int success;
int (*xread) (void *buf, size_t size, struct rng *ent_src);
fips_ctx_t *fipsctx;
};
/* Background/daemon mode */
-extern int am_daemon; /* Nonzero if we went daemon */
+extern bool am_daemon; /* True if we went daemon */
/*