Skip to content

Commit 00aa6b9

Browse files
committed
Merge branch 'master' of https://github.com/rust-lang-nursery/rand into add_cauchy_distribution
2 parents 482633a + 112cae3 commit 00aa6b9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

rand_core/src/lib.rs

+7
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,10 @@ impl std::io::Read for RngCore {
395395
Ok(buf.len())
396396
}
397397
}
398+
399+
// Implement `CryptoRng` for references to an `CryptoRng`.
400+
impl<'a, R: CryptoRng + ?Sized> CryptoRng for &'a mut R {}
401+
402+
// Implement `CryptoRng` for boxed references to an `CryptoRng`.
403+
#[cfg(feature="alloc")]
404+
impl<R: CryptoRng + ?Sized> CryptoRng for Box<R> {}

src/prng/hc128.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const SEED_WORDS: usize = 8; // 128 bit key followed by 128 bit iv
6262
/// Implementation Of HC-128 Stream Cipher"](
6363
/// http://library.isical.ac.in:8080/jspui/bitstream/123456789/6636/1/TH431.pdf).
6464
///
65-
/// [5]: Internet Engineering Task Force (Februari 2015),
65+
/// [5]: Internet Engineering Task Force (February 2015),
6666
/// ["Prohibiting RC4 Cipher Suites"](https://tools.ietf.org/html/rfc7465).
6767
///
6868
/// [`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html

0 commit comments

Comments
 (0)