genrandom.html revision 794b79e6bbc3f5db1ea6ae154d739b9f1ef1a375
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley - Copyright (C) 2009-2011, 2014 Internet Systems Consortium, Inc. ("ISC")
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - Permission to use, copy, modify, and/or distribute this software for any
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence - purpose with or without fee is hereby granted, provided that the above
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater - copyright notice and this permission notice appear in all copies.
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews - PERFORMANCE OF THIS SOFTWARE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews<!-- $Id$ -->
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley<a name="man.genrandom"></a><div class="titlepage"></div>
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley<p><span class="application">genrandom</span> — generate a file containing random data</p>
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley<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>
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence <span><strong class="command">genrandom</strong></span>
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence generates a file or a set of files containing a specified quantity
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley of pseudo-random data, which can be used as a source of entropy for
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley other commands on systems with no random device.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence<dt><span class="term">-n <em class="replaceable"><code>number</code></em></span></dt>
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence In place of generating one file, generates <code class="option">number</code>
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence (from 2 to 9) files, appending <code class="option">number</code> to the name.
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence The size of the file, in kilobytes, to generate.
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews The file name into which random data should be written.
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence <span class="citerefentry"><span class="refentrytitle">rand</span>(3)</span>,
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence <span class="citerefentry"><span class="refentrytitle">arc4random</span>(3)</span>
596912ee9ca8eb14d30707ec286ab5d28bd39b3eMark Andrews<p><span class="corpauthor">Internet Systems Consortium</span>