Skip to content

Commit e281dd3

Browse files
committed
Address comments
1 parent d90a41c commit e281dd3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ A Rust library for random number generation.
1111
Rand provides utilities to generate random numbers, to convert them to useful
1212
types and distributions, and some randomness-related algorithms.
1313

14-
Part of the functionality of Rand lives in the [rand_core](
15-
https://crates.io/crates/rand_core) crate, which is not intended for users but
16-
primarily for crates implementing RNGs.
14+
The core random number generation traits of Rand live in the [rand_core](
15+
https://crates.io/crates/rand_core) crate; this crate is most useful when
16+
implementing RNGs.
1717

1818
API reference:
1919
[master branch](https://rust-lang-nursery.github.io/rand/rand/index.html),
20-
[by release](https://docs.rs/rand).
20+
[by release](https://docs.rs/rand/0.5).
2121

2222
## Usage
2323

@@ -36,13 +36,13 @@ extern crate rand;
3636
use rand::prelude::*;
3737

3838
// basic usage with random():
39-
let x: u8 = rand::random();
39+
let x: u8 = random();
4040
println!("{}", x);
4141

42-
let y = rand::random::<f64>();
42+
let y = random::<f64>();
4343
println!("{}", y);
4444

45-
if rand::random() { // generates a boolean
45+
if random() { // generates a boolean
4646
println!("Heads!");
4747
}
4848

@@ -83,7 +83,7 @@ The Rand crate provides:
8383

8484
## Versions
8585

86-
Version 0.5 is available as a pre-release and contains many breaking changes.
86+
Version 0.5 is the latest version and contains many breaking changes.
8787
See [the Upgrade Guide](UPDATING.md) for guidance on updating from previous
8888
versions.
8989

@@ -94,7 +94,7 @@ For more details, see the [changelog](CHANGELOG.md).
9494

9595
### Rust version requirements
9696

97-
The 0.5 release of Rand will require **Rustc version 1.22 or greater**.
97+
The 0.5 release of Rand requires **Rustc version 1.22 or greater**.
9898
Rand 0.4 and 0.3 (since approx. June 2017) require Rustc version 1.15 or
9999
greater. Subsets of the Rand code may work with older Rust versions, but this
100100
is not supported.
@@ -120,8 +120,8 @@ optional features are available:
120120
functionality depending on `std`:
121121

122122
- `thread_rng()`, and `random()` are not available, as they require thread-local
123-
storage.
124-
- `OsRng` is unavailable.
123+
storage and an entropy source.
124+
- `OsRng` and `EntropyRng` are unavailable.
125125
- `JitterRng` code is still present, but a nanosecond timer must be provided via
126126
`JitterRng::new_with_timer`
127127
- Since no external entropy is available, it is not possible to create

0 commit comments

Comments
 (0)