]> git.ipfire.org Git - thirdparty/rng-tools.git/blame - rngd.8.in
Fix -Wshadow warning.
[thirdparty/rng-tools.git] / rngd.8.in
CommitLineData
61af3de3
JG
1.\" Copyright (C) 2001 Jeff Garzik -- jgarzik@pobox.com
2.\"
3.TH RNGD 8 "March 2001" "@PACKAGE@ @VERSION@"
4
5.SH NAME
6rngd \- Check and feed random data from hardware device to kernel random device
7
8.SH SYNOPSIS
9.B rngd
10[\fB\-b\fR, \fB\-\-background\fR]
11[\fB\-f\fR, \fB\-\-foreground\fR]
12[\fB\-o\fR, \fB\-\-random-device=\fIfile\fR]
13[\fB\-r\fR, \fB\-\-rng-device=\fIfile\fR]
14[\fB\-s\fR, \fB\-\-random-step=\fInnn\fR]
15[\fB\-W\fR, \fB\-\-fill-watermark=\fInnn\fR]
16[\fB\-t\fR, \fB\-\-timeout=\fInnn\fR]
17[\fB\-?\fR, \fB\-\-help\fR]
18[\fB\-V\fR, \fB\-\-version\fR]
19.RI
20
21.SH DESCRIPTION
22This daemon feeds data from a random number generator to the kernel's
23random number entropy pool, after first checking the data to ensure that
24it is properly random.
25.PP
26The \fB\-f\fR or \fB\-\-foreground\fR options can be used to tell
27\fBrngd\fR to avoid forking on startup. This is typically used for
28debugging. The \fB\-f\fR or \fB\-\-foreground\fR options, which fork and put
29\fBrngd\fR into the background automatically, are the default.
30.PP
31The \fB\-r\fR or \fB\-\-rng-device\fR options can be used to select an
32alternate source of input, besides the default /dev/hwrandom.
33The \fB\-o\fR or \fB\-\-random-device\fR options can be used to select
34an alternate entropy output device, besides the default /dev/random.
35Note that this device must support the Linux kernel /dev/random
36ioctl API.
37.PP
38FIXME: document random-step and timeout
39
40.SH OPTIONS
41.TP
42\fB\-b\fR, \fB\-\-background\fR
43Become a daemon (default)
44.TP
45\fB\-f\fR, \fB\-\-foreground\fR
46Do not fork and become a daemon
47.TP
48\fB\-o\fI file\fR, \fB\-\-random-device=\fIfile\fR
49Kernel device used for random number output
50(default: /dev/random)
51.TP
52\fB\-r\fI file\fR, \fB\-\-rng-device=\fIfile\fR
53Kernel device used for random number input
54(default: /dev/hwrandom)
55.TP
56\fB\-s\fI nnn\fR, \fB\-\-random-step=\fInnn\fR
57Number of bytes written to random-device at a time (default: 64)
58.TP
59\fB\-W\fI n\fR, \fB\-\-fill\-watermark=\fInnn\fR
60Once we start doing it, feed entropy to \fIrandom-device\fR until at least
61\fIfill-watermark\fR bits of entropy are available in its entropy pool (default: 2048).
62Setting this too high will cause \fIrngd\fR to dominate the contents of the
63entropy pool. Low values will hurt system performance during entropy
64starves. Do not set \fIfill-watermark\fR above the size of the
65entropy pool (usually 4096 bits).
66.TP
67\fB\-t\fI nnn\fR, \fB\-\-timeout=\fInnn\fR
68Interval written to random-device when the entropy pool is full, in seconds, or 0 to disable (default: 60)
69.TP
70\fB\-?\fR, \fB\-\-help\fR
71Give a short summary of all program options.
72.TP
73\fB\-V\fR, \fB\-\-version\fR
74Print program version
75
76.SH AUTHORS
77Philipp Rumpf
78.br
79Jeff Garzik \- jgarzik@pobox.com
80.br
81Matt Sottek
82