1
- <h1 ><a name =" imports " >World imports </a ></h1 >
1
+ <h1 ><a id =" imports " ></a >World imports </h1 >
2
2
<ul >
3
3
<li >Imports:
4
4
<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 >
8
8
</ul >
9
9
</li >
10
10
</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 >
12
12
<p >WASI Random is a random data API.</p >
13
13
<p >It is intended to be portable at least between Unix-family platforms and
14
14
Windows.</p >
15
15
<hr />
16
16
<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 >
18
18
<p >Return <code >len</code > cryptographically-secure random or pseudo-random bytes.</p >
19
19
<p >This function must produce data at least as cryptographically secure and
20
20
fast as an adequately seeded cryptographically-secure pseudo-random
@@ -27,27 +27,27 @@ must omit this function, rather than implementing it with deterministic
27
27
data.</p >
28
28
<h5 >Params</h5 >
29
29
<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 >
31
31
</ul >
32
32
<h5 >Return values</h5 >
33
33
<ul >
34
- <li ><a name =" get_random_bytes.0 " ></a > list< ; <code >u8</code >> ; </li >
34
+ <li ><a id =" get_random_bytes.0 " ></a > list< ; <code >u8</code >> ; </li >
35
35
</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 >
37
37
<p >Return a cryptographically-secure random or pseudo-random <code >u64</code > value.</p >
38
38
<p >This function returns the same type of data as <a href =" #get_random_bytes " ><code >get-random-bytes</code ></a >,
39
39
represented as a <code >u64</code >.</p >
40
40
<h5 >Return values</h5 >
41
41
<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 >
43
43
</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 >
45
45
<p >The insecure interface for insecure pseudo-random numbers.</p >
46
46
<p >It is intended to be portable at least between Unix-family platforms and
47
47
Windows.</p >
48
48
<hr />
49
49
<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 >
51
51
<p >Return <code >len</code > insecure pseudo-random bytes.</p >
52
52
<p >This function is not cryptographically secure. Do not use it for
53
53
anything related to security.</p >
@@ -56,27 +56,27 @@ implementations are encouraged to return evenly distributed values with
56
56
a long period.</p >
57
57
<h5 >Params</h5 >
58
58
<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 >
60
60
</ul >
61
61
<h5 >Return values</h5 >
62
62
<ul >
63
- <li ><a name =" get_insecure_random_bytes.0 " ></a > list< ; <code >u8</code >> ; </li >
63
+ <li ><a id =" get_insecure_random_bytes.0 " ></a > list< ; <code >u8</code >> ; </li >
64
64
</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 >
66
66
<p >Return an insecure pseudo-random <code >u64</code > value.</p >
67
67
<p >This function returns the same type of pseudo-random data as
68
68
<a href =" #get_insecure_random_bytes " ><code >get-insecure-random-bytes</code ></a >, represented as a <code >u64</code >.</p >
69
69
<h5 >Return values</h5 >
70
70
<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 >
72
72
</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 >
74
74
<p >The insecure-seed interface for seeding hash-map DoS resistance.</p >
75
75
<p >It is intended to be portable at least between Unix-family platforms and
76
76
Windows.</p >
77
77
<hr />
78
78
<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 >
80
80
<p >Return a 128-bit value that may contain a pseudo-random value.</p >
81
81
<p >The returned value is not required to be computed from a CSPRNG, and may
82
82
even be entirely deterministic. Host implementations are encouraged to
@@ -92,5 +92,5 @@ called multiple times and potentially used for purposes other than DoS
92
92
protection.</p >
93
93
<h5 >Return values</h5 >
94
94
<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 >
96
96
</ul >
0 commit comments