Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > e99b5bddb2f5ee474a4ad74ee66a3511 > files > 39

ocaml-cryptokit-devel-1.3-2mdv2010.0.x86_64.rpm

<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="Start" href="index.html">
<link rel="Up" href="Cryptokit.Random.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Cryptokit" rel="Chapter" href="Cryptokit.html"><title>Cryptokit.Random.rng</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="Cryptokit.Random.html">Up</a>
&nbsp;</div>
<center><h1>Class type <a href="type_Cryptokit.Random.rng.html">Cryptokit.Random.rng</a></h1></center>
<br>
<pre><span class="keyword">class type</span> <a name="TYPErng"></a>rng = <code class="code">object</code> <a href="Cryptokit.Random.rng.html">..</a> <code class="code">end</code></pre>Generic interface for a random number generator.<br>
<hr width="100%">
<pre><span class="keyword">method</span> <a name="METHODrandom_bytes"></a>random_bytes : <code class="type">string -> int -> int -> unit</code></pre><div class="info">
<code class="code">random_bytes buf pos len</code> stores <code class="code">len</code> random bytes
            in string <code class="code">buf</code>, starting at position <code class="code">pos</code>.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODwipe"></a>wipe : <code class="type">unit</code></pre><div class="info">
Erases the internal state of the generator.
            Do not call <code class="code">random_bytes</code> after calling <code class="code">wipe</code>.<br>
</div>
</body></html>