Merge pull request #845 from dhardy/chacha

Prepare rand_chacha 0.2.1
diff --git a/rand_core/src/lib.rs b/rand_core/src/lib.rs
index e210b5e..78f6c5b 100644
--- a/rand_core/src/lib.rs
+++ b/rand_core/src/lib.rs
@@ -137,23 +137,23 @@
     /// RNGs must implement at least one method from this trait directly. In
     /// the case this method is not implemented directly, it can be implemented
     /// using `self.next_u64() as u32` or via
-    /// [`fill_bytes`][impls::next_u32_via_fill].
+    /// [`fill_bytes`](impls::next_u32_via_fill).
     fn next_u32(&mut self) -> u32;
 
     /// Return the next random `u64`.
     ///
     /// RNGs must implement at least one method from this trait directly. In
     /// the case this method is not implemented directly, it can be implemented
-    /// via [`next_u32`][impls::next_u64_via_u32] or via
-    /// [`fill_bytes`][impls::next_u64_via_fill].
+    /// via [`next_u32`](impls::next_u64_via_u32) or via
+    /// [`fill_bytes`](impls::next_u64_via_fill).
     fn next_u64(&mut self) -> u64;
 
     /// Fill `dest` with random data.
     ///
     /// RNGs must implement at least one method from this trait directly. In
     /// the case this method is not implemented directly, it can be implemented
-    /// via [`next_u*`][impls::fill_bytes_via_next] or
-    /// via [`try_fill_bytes`][RngCore::try_fill_bytes]; if this generator can
+    /// via [`next_u*`](impls::fill_bytes_via_next) or
+    /// via [`try_fill_bytes`](RngCore::try_fill_bytes); if this generator can
     /// fail the implementation must choose how best to handle errors here
     /// (e.g. panic with a descriptive message or log a warning and retry a few
     /// times).
diff --git a/rand_distr/Cargo.toml b/rand_distr/Cargo.toml
index e319bc4..e821985 100644
--- a/rand_distr/Cargo.toml
+++ b/rand_distr/Cargo.toml
@@ -19,7 +19,7 @@
 appveyor = { repository = "rust-random/rand" }
 
 [dependencies]
-rand = { path = "..", version = ">=0.5, <=0.7" }
+rand = { path = "..", version = "0.7" }
 
 [dev-dependencies]
 rand_pcg = { version = "0.2", path = "../rand_pcg" }
diff --git a/rand_distr/src/exponential.rs b/rand_distr/src/exponential.rs
index 91b091e..8322489 100644
--- a/rand_distr/src/exponential.rs
+++ b/rand_distr/src/exponential.rs
@@ -73,7 +73,7 @@
 /// This distribution has density function: `f(x) = lambda * exp(-lambda * x)`
 /// for `x > 0`.
 /// 
-/// Note that [`Exp1`][crate::Exp1] is an optimised implementation for `lambda = 1`.
+/// Note that [`Exp1`](crate::Exp1) is an optimised implementation for `lambda = 1`.
 ///
 /// # Example
 ///
diff --git a/src/distributions/exponential.rs b/src/distributions/exponential.rs
index 3859af6..0278248 100644
--- a/src/distributions/exponential.rs
+++ b/src/distributions/exponential.rs
@@ -57,7 +57,7 @@
 /// This distribution has density function: `f(x) = lambda * exp(-lambda * x)`
 /// for `x > 0`.
 /// 
-/// Note that [`Exp1`][crate::distributions::Exp1] is an optimised implementation for `lambda = 1`.
+/// Note that [`Exp1`](crate::distributions::Exp1) is an optimised implementation for `lambda = 1`.
 #[deprecated(since="0.7.0", note="moved to rand_distr crate")]
 #[derive(Clone, Copy, Debug)]
 pub struct Exp {
diff --git a/src/rngs/small.rs b/src/rngs/small.rs
index 6958a0b..6571363 100644
--- a/src/rngs/small.rs
+++ b/src/rngs/small.rs
@@ -34,8 +34,8 @@
 /// The PRNG algorithm in `SmallRng` is chosen to be
 /// efficient on the current platform, without consideration for cryptography
 /// or security. The size of its state is much smaller than [`StdRng`].
-/// The current algorithm is [`Pcg64Mcg`][rand_pcg::Pcg64Mcg] on 64-bit
-/// platforms and [`Pcg32`][rand_pcg::Pcg32] on 32-bit platforms. Both are
+/// The current algorithm is [`Pcg64Mcg`](rand_pcg::Pcg64Mcg) on 64-bit
+/// platforms and [`Pcg32`](rand_pcg::Pcg32) on 32-bit platforms. Both are
 /// implemented by the [rand_pcg] crate.
 ///
 /// # Examples