Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.sbin / rndcontrol / rndcontrol.8
1 .\"
2 .\" Copyright (c) 1995
3 .\"     Mark Murray.  All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY MARK MURRAY AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD: src/usr.sbin/rndcontrol/rndcontrol.8,v 1.13.2.2 2001/12/21 09:05:32 ru Exp $
27 .\"
28 .Dd October 20, 1995
29 .Dt RNDCONTROL 8
30 .Os
31 .Sh NAME
32 .Nm rndcontrol
33 .Nd a utility for manipulating the
34 .Pa /dev/random
35 device
36 .Sh SYNOPSIS
37 .Nm
38 .Op Fl q
39 .Op Fl s Ar irq_no
40 .Op Fl c Ar irq_no
41 .Sh DESCRIPTION
42 The
43 .Nm
44 command is used to set which interrupts are used to help randomise
45 the
46 .Dq "pool of entropy"
47 maintained by the kernel.
48 The
49 .Pa /dev/random
50 and
51 .Pa /dev/urandom
52 devices are the user interface to this source of randomness.
53 Any changes take effect immediately.
54 .Pp
55 The following command line options are supported:
56 .Bl -tag -width indent
57 .It Fl q
58 Turn off all output except errors.
59 .It Fl s Ar n
60 Allow IRQ
61 .Ar n
62 to be used as a source of randomness.
63 This option may be repeated for
64 more than one IRQ.
65 .It Fl c Ar n
66 Stop IRQ
67 .Ar n
68 from being used as a source of randomness.
69 This option may be repeated for
70 more than one IRQ.
71 .El
72 .Pp
73 The default is to have no IRQ's being used.
74 .Pp
75 .Sh FILES
76 .Bl -tag -width ".Pa /dev/urandom" -compact
77 .It Pa /dev/random
78 secure random device
79 .It Pa /dev/urandom
80 random device
81 .El
82 .Sh BUGS
83 Sure to be some.
84 .Sh SEE ALSO
85 .Xr random 4
86 .Sh AUTHORS
87 .An -nosplit
88 .An Theodore Ts'o
89 wrote the core code.
90 .An Mark Murray
91 ported this code to
92 .Fx
93 and wrote the support routines and constructed the man pages.
94 .Sh HISTORY
95 The
96 .Nm
97 utility first appeared in
98 .Fx 2.1.5 .