File tree 5 files changed +34
-5
lines changed
5 files changed +34
-5
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ matrix:
199
199
- source ~/.cargo/env || true
200
200
script :
201
201
- bash utils/ci/script.sh
202
+ allow_failures :
203
+ - env : TARGET=armv7-linux-androideabi
202
204
203
205
before_install :
204
206
- set -e
Original file line number Diff line number Diff line change 40
40
//!
41
41
//! [Jitterentropy]: http://www.chronox.de/jent.html
42
42
43
+ #![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png" ,
44
+ html_favicon_url = "https://www.rust-lang.org/favicon.ico" ,
45
+ html_root_url = "https://rust-random.github.io/rand/" ) ]
46
+
47
+ #![ deny( missing_docs) ]
48
+ #![ deny( missing_debug_implementations) ]
49
+ #![ doc( test( attr( allow( unused_variables) , deny( warnings) ) ) ) ]
50
+
43
51
// Note: the C implementation of `Jitterentropy` relies on being compiled
44
52
// without optimizations. This implementation goes through lengths to make the
45
53
// compiler not optimize out code which does influence timing jitter, but is
Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ type Rng = ::rand_pcg::Pcg32;
24
24
/// future library versions may use a different internal generator with
25
25
/// different output. Further, this generator may not be portable and can
26
26
/// produce different output depending on the architecture. If you require
27
- /// reproducible output, use a named RNG. Refer to the documentation on the
28
- /// [`prng`][crate::prng] module.
27
+ /// reproducible output, use a named RNG.
28
+ /// Refer to [The Book](https://rust-random.github.io/book/guide-rngs.html).
29
+ ///
29
30
///
30
31
/// The current algorithm is [`Pcg64Mcg`][rand_pcg::Pcg64Mcg] on 64-bit platforms with Rust version
31
- /// 1.26 and later, or [`Pcg32`][rand_pcg::Pcg32] otherwise.
32
+ /// 1.26 and later, or [`Pcg32`][rand_pcg::Pcg32] otherwise. Both are found in
33
+ /// the [rand_pcg] crate.
32
34
///
33
35
/// # Examples
34
36
///
@@ -67,6 +69,7 @@ type Rng = ::rand_pcg::Pcg32;
67
69
/// [`FromEntropy`]: crate::FromEntropy
68
70
/// [`StdRng`]: crate::rngs::StdRng
69
71
/// [`thread_rng`]: crate::thread_rng
72
+ /// [rand_pcg]: https://crates.io/crates/rand_pcg
70
73
#[ derive( Clone , Debug ) ]
71
74
pub struct SmallRng ( Rng ) ;
72
75
Original file line number Diff line number Diff line change @@ -15,16 +15,20 @@ use rand_hc::Hc128Rng;
15
15
/// on the current platform, to be statistically strong and unpredictable
16
16
/// (meaning a cryptographically secure PRNG).
17
17
///
18
- /// The current algorithm used on all platforms is [HC-128].
18
+ /// The current algorithm used on all platforms is [HC-128], found in the
19
+ /// [rand_hc] crate.
19
20
///
20
21
/// Reproducibility of output from this generator is however not required, thus
21
22
/// future library versions may use a different internal generator with
22
23
/// different output. Further, this generator may not be portable and can
23
24
/// produce different output depending on the architecture. If you require
24
- /// reproducible output, use a named RNG, for example [`ChaChaRng`].
25
+ /// reproducible output, use a named RNG, for example [`ChaChaRng`] from the
26
+ /// [rand_chacha] crate.
25
27
///
26
28
/// [HC-128]: rand_hc::Hc128Rng
27
29
/// [`ChaChaRng`]: rand_chacha::ChaChaRng
30
+ /// [rand_hc]: https://crates.io/crates/rand_hc
31
+ /// [rand_chacha]: https://crates.io/crates/rand_chacha
28
32
#[ derive( Clone , Debug ) ]
29
33
pub struct StdRng ( Hc128Rng ) ;
30
34
Original file line number Diff line number Diff line change
1
+ // Copyright 2018 Developers of the Rand project.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4
+ // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5
+ // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6
+ // option. This file may not be copied, modified, or distributed
7
+ // except according to those terms.
8
+
9
+ // Crate to test WASM with the `wasm-bindgen` lib.
10
+
11
+ #![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png" ) ]
12
+
1
13
extern crate rand;
2
14
extern crate wasm_bindgen;
3
15
extern crate wasm_bindgen_test;
You can’t perform that action at this time.
0 commit comments