Skip to content

Commit e9e607c

Browse files
authored
Merge pull request #631 from jsheard/patch-1
Update Emscripten OsRng docs
2 parents 31b437a + 3b20ffa commit e9e607c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/rngs/os.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ use rand_core::{CryptoRng, RngCore, Error, impls};
5555
/// The three Emscripten targets `asmjs-unknown-emscripten`,
5656
/// `wasm32-unknown-emscripten` and `wasm32-experimental-emscripten` use
5757
/// Emscripten's emulation of `/dev/random` on web browsers and Node.js.
58-
/// Unfortunately it falls back to the insecure `Math.random()` if a browser
59-
/// doesn't support [`Crypto.getRandomValues`][12].
6058
///
6159
/// The bare Wasm target `wasm32-unknown-unknown` tries to call the javascript
6260
/// methods directly, using either `stdweb` in combination with `cargo-web` or

0 commit comments

Comments
 (0)