<h3>6 <span class="Heading">Really random sources</span></h3>
<p>This section describes so called <q>real random sources</q>. It is an extension to the library mechanism of random source objects that uses the devices <code class="file">/dev/random</code> and <code class="file">/dev/urandom</code> available on <code class="file">Linux</code> systems (and maybe on other operating systems) providing random numbers that are impossible to predict. The idea is that such sources of random numbers are useful to produce unpredictable secret keys for cryptographic applications.</p>
<div class="func"><table class="func" width="100%"><tr><td class="tdleft"><code class="func">‣ RandomSource</code>( <var class="Arg">r</var>, <var class="Arg">dev</var> )</td><td class="tdright">( method )</td></tr></table></div>
<p>Returns: a real random sourceobject or <code class="code">fail</code></p>
<p>The first argument <var class="Arg">r</var> must be the <strong class="pkg">GAP</strong> filter <code class="code">IsRealRandomSource</code> and the second either the string <code class="file">random</code> or the string <code class="file">urandom</code>. A real random sourceobject is created that draws its random numbers from the kernel devices <code class="file">/dev/random</code> and <code class="file">/dev/urandom</code> respectively. Whereas <code class="file">/dev/urandom</code> always provides random numbers of not guaranteed <q>quality</q>, the device <code class="file">/dev/random</code> measures its entropy and produces guaranteed unpredictable numbers. However, it might block until enough <q>random</q> events (like mouse movements) have been accumulated.</p>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.