2002-07-08 04:28:42 +08:00
|
|
|
<sect1 id="postlfs-config-random" xreflabel="random">
|
2004-05-07 04:30:53 +08:00
|
|
|
<?dbhtml filename="random.html"?>
|
2002-07-08 04:28:42 +08:00
|
|
|
<title>Random number generation</title>
|
|
|
|
|
|
|
|
<para>The Linux kernel supplies a random number generator which is accessed
|
2003-05-05 01:39:22 +08:00
|
|
|
through <filename class="devicefile">/dev/random</filename> and
|
|
|
|
<filename class="devicefile">/dev/urandom</filename>. Programs that utilize
|
|
|
|
the random and urandom devices, such as <application>OpenSSH</application>,
|
|
|
|
will benefit from these instructions.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<para>When a Linux system starts up without much operator interaction, the
|
|
|
|
entropy pool, data used to compute a random number, may be in a fairly
|
|
|
|
predictable state. This creates the real possibility that the number generated
|
|
|
|
at startup may always be the same. In order to counteract this effect,
|
|
|
|
you should carry the entropy pool information across your shut-downs and
|
2004-03-22 15:42:22 +08:00
|
|
|
start-ups.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-03-22 15:42:22 +08:00
|
|
|
<para>Install the <filename>/etc/rc.d/init.d/random</filename>
|
|
|
|
init script included with the
|
|
|
|
<xref linkend="intro-important-bootscripts"/> package.</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>make install-random</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|