Skip to content

Commit 9b2d558

Browse files
authored
Fix WASI function name and doc link (#202)
1 parent d79de0c commit 9b2d558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
//! | SGX | `x86_64‑*‑sgx` | [RDRAND][18]
2828
//! | VxWorks | `*‑wrs‑vxworks‑*` | `randABytes` after checking entropy pool initialization with `randSecure`
2929
//! | Emscripten | `*‑emscripten` | `/dev/random` (identical to `/dev/urandom`)
30-
//! | WASI | `wasm32‑wasi` | [`__wasi_random_get`][17]
30+
//! | WASI | `wasm32‑wasi` | [`random_get`][17]
3131
//! | Web Browser | `wasm32‑*‑unknown` | [`Crypto.getRandomValues()`][14], see [WebAssembly support][16]
3232
//! | Node.js | `wasm32‑*‑unknown` | [`crypto.randomBytes`][15], see [WebAssembly support][16]
3333
//!
@@ -133,7 +133,7 @@
133133
//! [14]: https://www.w3.org/TR/WebCryptoAPI/#Crypto-method-getRandomValues
134134
//! [15]: https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback
135135
//! [16]: #webassembly-support
136-
//! [17]: https://github.com/WebAssembly/WASI/blob/master/design/WASI-core.md#__wasi_random_get
136+
//! [17]: https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#-random_getbuf-pointeru8-buf_len-size---errno
137137
//! [18]: https://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide
138138
//! [19]: https://www.unix.com/man-page/mojave/2/getentropy/
139139
//! [20]: https://www.unix.com/man-page/mojave/4/random/

0 commit comments

Comments
 (0)