File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ A [separate changelog is kept for rand_core](rand_core/CHANGELOG.md).
8
8
9
9
You may also find the [ Update Guide] ( UPDATING.md ) useful.
10
10
11
+ ## [ 0.5.4] - 2018-07-11
12
+ ### Platform support
13
+ - Make ` OsRng ` work via WASM/stdweb for WebWorkers
14
+
11
15
## [ 0.5.3] - 2018-06-26
12
16
### Platform support
13
17
- OpenBSD, Bitrig: fix compilation (broken in 0.5.1) (#530 )
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " rand"
3
- version = " 0.5.3 " # NB: When modifying, also modify html_root_url in lib.rs
3
+ version = " 0.5.4 " # NB: When modifying, also modify html_root_url in lib.rs
4
4
authors = [" The Rust Project Developers" ]
5
5
license = " MIT/Apache-2.0"
6
6
readme = " README.md"
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ impl<T> Distribution<Wrapping<T>> for Standard where Standard: Distribution<T> {
174
174
mod tests {
175
175
use { Rng , RngCore , Standard } ;
176
176
use distributions:: Alphanumeric ;
177
- #[ cfg( all( not( feature="std" ) , feature="alloc" ) ) ] use alloc:: String ;
177
+ #[ cfg( all( not( feature="std" ) , feature="alloc" ) ) ] use alloc:: string :: String ;
178
178
179
179
#[ test]
180
180
fn test_misc ( ) {
Original file line number Diff line number Diff line change 223
223
224
224
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png" ,
225
225
html_favicon_url = "https://www.rust-lang.org/favicon.ico" ,
226
- html_root_url = "https://docs.rs/rand/0.5.3 " ) ]
226
+ html_root_url = "https://docs.rs/rand/0.5.4 " ) ]
227
227
228
228
#![ deny( missing_docs) ]
229
229
#![ deny( missing_debug_implementations) ]
Original file line number Diff line number Diff line change 13
13
use super :: Rng ;
14
14
15
15
// This crate is only enabled when either std or alloc is available.
16
+ #[ cfg( all( feature="alloc" , not( feature="std" ) ) ) ] use alloc:: vec:: Vec ;
16
17
// BTreeMap is not as fast in tests, but better than nothing.
17
18
#[ cfg( feature="std" ) ] use std:: collections:: HashMap ;
18
- #[ cfg( not( feature="std" ) ) ] use alloc:: btree_map:: BTreeMap ;
19
-
20
- #[ cfg( not( feature="std" ) ) ] use alloc:: Vec ;
19
+ #[ cfg( all( feature="alloc" , not( feature="std" ) ) ) ] use alloc:: collections:: BTreeMap ;
21
20
22
21
/// Randomly sample `amount` elements from a finite iterator.
23
22
///
@@ -227,7 +226,7 @@ mod test {
227
226
use super :: * ;
228
227
use { XorShiftRng , Rng , SeedableRng } ;
229
228
#[ cfg( not( feature="std" ) ) ]
230
- use alloc:: Vec ;
229
+ use alloc:: vec :: Vec ;
231
230
232
231
#[ test]
233
232
fn test_sample_iter ( ) {
You can’t perform that action at this time.
0 commit comments