2 - Copyright (C) 2009-2011, 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
4 - Permission to use, copy, modify, and/or distribute this software for any
5 - purpose with or without fee is hereby granted, provided that the above
6 - copyright notice and this permission notice appear in all copies.
8 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 - PERFORMANCE OF THIS SOFTWARE.
18 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
19 <title>genrandom</title>
20 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
22 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
23 <a name="man.genrandom"></a><div class="titlepage"></div>
24 <div class="refnamediv">
26 <p><span class="application">genrandom</span> — generate a file containing random data</p>
28 <div class="refsynopsisdiv">
30 <div class="cmdsynopsis"><p><code class="command">genrandom</code> [<code class="option">-n <em class="replaceable"><code>number</code></em></code>] {<em class="replaceable"><code>size</code></em>} {<em class="replaceable"><code>filename</code></em>}</p></div>
32 <div class="refsection">
33 <a name="id-1.7"></a><h2>DESCRIPTION</h2>
35 <span class="command"><strong>genrandom</strong></span>
36 generates a file or a set of files containing a specified quantity
37 of pseudo-random data, which can be used as a source of entropy for
38 other commands on systems with no random device.
41 <div class="refsection">
42 <a name="id-1.8"></a><h2>ARGUMENTS</h2>
43 <div class="variablelist"><dl class="variablelist">
44 <dt><span class="term">-n <em class="replaceable"><code>number</code></em></span></dt>
46 In place of generating one file, generates <code class="option">number</code>
47 (from 2 to 9) files, appending <code class="option">number</code> to the name.
49 <dt><span class="term">size</span></dt>
51 The size of the file, in kilobytes, to generate.
53 <dt><span class="term">filename</span></dt>
55 The file name into which random data should be written.
59 <div class="refsection">
60 <a name="id-1.9"></a><h2>SEE ALSO</h2>
62 <span class="citerefentry"><span class="refentrytitle">rand</span>(3)</span>,
63 <span class="citerefentry"><span class="refentrytitle">arc4random</span>(3)</span>