-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: regen md with newer wit-bindgen
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,19 @@ | |
<ul> | ||
<li>Imports: | ||
<ul> | ||
<li>interface <a href="#wasi:random_random_0.2.0"><code>wasi:random/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:random_insecure_0.2.0"><code>wasi:random/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:random_insecure_seed_0.2.0"><code>wasi:random/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi_random_random_0_2_0"><code>wasi:random/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi_random_insecure_0_2_0"><code>wasi:random/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi_random_insecure_seed_0_2_0"><code>wasi:random/[email protected]</code></a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<h2><a name="wasi:random_random_0.2.0">Import interface wasi:random/[email protected]</a></h2> | ||
<h2><a name="wasi_random_random_0_2_0"></a>Import interface wasi:random/[email protected]</h2> | ||
<p>WASI Random is a random data API.</p> | ||
<p>It is intended to be portable at least between Unix-family platforms and | ||
Windows.</p> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a name="get_random_bytes"><code>get-random-bytes: func</code></a></h4> | ||
<h4><a name="get_random_bytes"></a><code>get-random-bytes: func</code></h4> | ||
<p>Return <code>len</code> cryptographically-secure random or pseudo-random bytes.</p> | ||
<p>This function must produce data at least as cryptographically secure and | ||
fast as an adequately seeded cryptographically-secure pseudo-random | ||
|
@@ -27,27 +27,27 @@ must omit this function, rather than implementing it with deterministic | |
data.</p> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a name="get_random_bytes.len"><code>len</code></a>: <code>u64</code></li> | ||
<li><a name="get_random_bytes.len"></a><code>len</code>: <code>u64</code></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a name="get_random_bytes.0"></a> list<<code>u8</code>></li> | ||
</ul> | ||
<h4><a name="get_random_u64"><code>get-random-u64: func</code></a></h4> | ||
<h4><a name="get_random_u64"></a><code>get-random-u64: func</code></h4> | ||
<p>Return a cryptographically-secure random or pseudo-random <code>u64</code> value.</p> | ||
<p>This function returns the same type of data as <a href="#get_random_bytes"><code>get-random-bytes</code></a>, | ||
represented as a <code>u64</code>.</p> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a name="get_random_u64.0"></a> <code>u64</code></li> | ||
</ul> | ||
<h2><a name="wasi:random_insecure_0.2.0">Import interface wasi:random/[email protected]</a></h2> | ||
<h2><a name="wasi_random_insecure_0_2_0"></a>Import interface wasi:random/[email protected]</h2> | ||
<p>The insecure interface for insecure pseudo-random numbers.</p> | ||
<p>It is intended to be portable at least between Unix-family platforms and | ||
Windows.</p> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a name="get_insecure_random_bytes"><code>get-insecure-random-bytes: func</code></a></h4> | ||
<h4><a name="get_insecure_random_bytes"></a><code>get-insecure-random-bytes: func</code></h4> | ||
<p>Return <code>len</code> insecure pseudo-random bytes.</p> | ||
<p>This function is not cryptographically secure. Do not use it for | ||
anything related to security.</p> | ||
|
@@ -56,27 +56,27 @@ implementations are encouraged to return evenly distributed values with | |
a long period.</p> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a name="get_insecure_random_bytes.len"><code>len</code></a>: <code>u64</code></li> | ||
<li><a name="get_insecure_random_bytes.len"></a><code>len</code>: <code>u64</code></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a name="get_insecure_random_bytes.0"></a> list<<code>u8</code>></li> | ||
</ul> | ||
<h4><a name="get_insecure_random_u64"><code>get-insecure-random-u64: func</code></a></h4> | ||
<h4><a name="get_insecure_random_u64"></a><code>get-insecure-random-u64: func</code></h4> | ||
<p>Return an insecure pseudo-random <code>u64</code> value.</p> | ||
<p>This function returns the same type of pseudo-random data as | ||
<a href="#get_insecure_random_bytes"><code>get-insecure-random-bytes</code></a>, represented as a <code>u64</code>.</p> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a name="get_insecure_random_u64.0"></a> <code>u64</code></li> | ||
</ul> | ||
<h2><a name="wasi:random_insecure_seed_0.2.0">Import interface wasi:random/[email protected]</a></h2> | ||
<h2><a name="wasi_random_insecure_seed_0_2_0"></a>Import interface wasi:random/[email protected]</h2> | ||
<p>The insecure-seed interface for seeding hash-map DoS resistance.</p> | ||
<p>It is intended to be portable at least between Unix-family platforms and | ||
Windows.</p> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a name="insecure_seed"><code>insecure-seed: func</code></a></h4> | ||
<h4><a name="insecure_seed"></a><code>insecure-seed: func</code></h4> | ||
<p>Return a 128-bit value that may contain a pseudo-random value.</p> | ||
<p>The returned value is not required to be computed from a CSPRNG, and may | ||
even be entirely deterministic. Host implementations are encouraged to | ||
|