Skip to content

Commit 56cff94

Browse files
authored
Merge pull request #47 from yoshuawuyts/v0.2.2
Update to v0.2.2
2 parents 89168b3 + 708f218 commit 56cff94

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: WebAssembly/wit-abi-up-to-date@v21
14+
- uses: WebAssembly/wit-abi-up-to-date@v22
1515
with:
16-
wit-bindgen: '0.28.0'
16+
wit-bindgen: '0.33.0'

imports.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<h1><a name="imports">World imports</a></h1>
1+
<h1><a id="imports"></a>World imports</h1>
22
<ul>
33
<li>Imports:
44
<ul>
5-
<li>interface <a href="#wasi_random_random_0_2_1"><code>wasi:random/[email protected].1</code></a></li>
6-
<li>interface <a href="#wasi_random_insecure_0_2_1"><code>wasi:random/[email protected].1</code></a></li>
7-
<li>interface <a href="#wasi_random_insecure_seed_0_2_1"><code>wasi:random/[email protected].1</code></a></li>
5+
<li>interface <a href="#wasi_random_random_0_2_2"><code>wasi:random/[email protected].2</code></a></li>
6+
<li>interface <a href="#wasi_random_insecure_0_2_2"><code>wasi:random/[email protected].2</code></a></li>
7+
<li>interface <a href="#wasi_random_insecure_seed_0_2_2"><code>wasi:random/[email protected].2</code></a></li>
88
</ul>
99
</li>
1010
</ul>
11-
<h2><a name="wasi_random_random_0_2_1"></a>Import interface wasi:random/[email protected].1</h2>
11+
<h2><a id="wasi_random_random_0_2_2"></a>Import interface wasi:random/[email protected].2</h2>
1212
<p>WASI Random is a random data API.</p>
1313
<p>It is intended to be portable at least between Unix-family platforms and
1414
Windows.</p>
1515
<hr />
1616
<h3>Functions</h3>
17-
<h4><a name="get_random_bytes"></a><code>get-random-bytes: func</code></h4>
17+
<h4><a id="get_random_bytes"></a><code>get-random-bytes: func</code></h4>
1818
<p>Return <code>len</code> cryptographically-secure random or pseudo-random bytes.</p>
1919
<p>This function must produce data at least as cryptographically secure and
2020
fast as an adequately seeded cryptographically-secure pseudo-random
@@ -27,27 +27,27 @@ must omit this function, rather than implementing it with deterministic
2727
data.</p>
2828
<h5>Params</h5>
2929
<ul>
30-
<li><a name="get_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
30+
<li><a id="get_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
3131
</ul>
3232
<h5>Return values</h5>
3333
<ul>
34-
<li><a name="get_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
34+
<li><a id="get_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
3535
</ul>
36-
<h4><a name="get_random_u64"></a><code>get-random-u64: func</code></h4>
36+
<h4><a id="get_random_u64"></a><code>get-random-u64: func</code></h4>
3737
<p>Return a cryptographically-secure random or pseudo-random <code>u64</code> value.</p>
3838
<p>This function returns the same type of data as <a href="#get_random_bytes"><code>get-random-bytes</code></a>,
3939
represented as a <code>u64</code>.</p>
4040
<h5>Return values</h5>
4141
<ul>
42-
<li><a name="get_random_u64.0"></a> <code>u64</code></li>
42+
<li><a id="get_random_u64.0"></a> <code>u64</code></li>
4343
</ul>
44-
<h2><a name="wasi_random_insecure_0_2_1"></a>Import interface wasi:random/[email protected].1</h2>
44+
<h2><a id="wasi_random_insecure_0_2_2"></a>Import interface wasi:random/[email protected].2</h2>
4545
<p>The insecure interface for insecure pseudo-random numbers.</p>
4646
<p>It is intended to be portable at least between Unix-family platforms and
4747
Windows.</p>
4848
<hr />
4949
<h3>Functions</h3>
50-
<h4><a name="get_insecure_random_bytes"></a><code>get-insecure-random-bytes: func</code></h4>
50+
<h4><a id="get_insecure_random_bytes"></a><code>get-insecure-random-bytes: func</code></h4>
5151
<p>Return <code>len</code> insecure pseudo-random bytes.</p>
5252
<p>This function is not cryptographically secure. Do not use it for
5353
anything related to security.</p>
@@ -56,27 +56,27 @@ implementations are encouraged to return evenly distributed values with
5656
a long period.</p>
5757
<h5>Params</h5>
5858
<ul>
59-
<li><a name="get_insecure_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
59+
<li><a id="get_insecure_random_bytes.len"></a><code>len</code>: <code>u64</code></li>
6060
</ul>
6161
<h5>Return values</h5>
6262
<ul>
63-
<li><a name="get_insecure_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
63+
<li><a id="get_insecure_random_bytes.0"></a> list&lt;<code>u8</code>&gt;</li>
6464
</ul>
65-
<h4><a name="get_insecure_random_u64"></a><code>get-insecure-random-u64: func</code></h4>
65+
<h4><a id="get_insecure_random_u64"></a><code>get-insecure-random-u64: func</code></h4>
6666
<p>Return an insecure pseudo-random <code>u64</code> value.</p>
6767
<p>This function returns the same type of pseudo-random data as
6868
<a href="#get_insecure_random_bytes"><code>get-insecure-random-bytes</code></a>, represented as a <code>u64</code>.</p>
6969
<h5>Return values</h5>
7070
<ul>
71-
<li><a name="get_insecure_random_u64.0"></a> <code>u64</code></li>
71+
<li><a id="get_insecure_random_u64.0"></a> <code>u64</code></li>
7272
</ul>
73-
<h2><a name="wasi_random_insecure_seed_0_2_1"></a>Import interface wasi:random/[email protected].1</h2>
73+
<h2><a id="wasi_random_insecure_seed_0_2_2"></a>Import interface wasi:random/[email protected].2</h2>
7474
<p>The insecure-seed interface for seeding hash-map DoS resistance.</p>
7575
<p>It is intended to be portable at least between Unix-family platforms and
7676
Windows.</p>
7777
<hr />
7878
<h3>Functions</h3>
79-
<h4><a name="insecure_seed"></a><code>insecure-seed: func</code></h4>
79+
<h4><a id="insecure_seed"></a><code>insecure-seed: func</code></h4>
8080
<p>Return a 128-bit value that may contain a pseudo-random value.</p>
8181
<p>The returned value is not required to be computed from a CSPRNG, and may
8282
even be entirely deterministic. Host implementations are encouraged to
@@ -92,5 +92,5 @@ called multiple times and potentially used for purposes other than DoS
9292
protection.</p>
9393
<h5>Return values</h5>
9494
<ul>
95-
<li><a name="insecure_seed.0"></a> (<code>u64</code>, <code>u64</code>)</li>
95+
<li><a id="insecure_seed.0"></a> (<code>u64</code>, <code>u64</code>)</li>
9696
</ul>

wit/insecure-seed.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.1;
1+
package wasi:random@0.2.2;
22
/// The insecure-seed interface for seeding hash-map DoS resistance.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

wit/insecure.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.1;
1+
package wasi:random@0.2.2;
22
/// The insecure interface for insecure pseudo-random numbers.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

wit/random.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.1;
1+
package wasi:random@0.2.2;
22
/// WASI Random is a random data API.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

wit/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.1;
1+
package wasi:random@0.2.2;
22

33
@since(version = 0.2.0)
44
world imports {

0 commit comments

Comments
 (0)