We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b84c545 + 96a3a05 commit 429a010Copy full SHA for 429a010
src/lib.rs
@@ -841,7 +841,7 @@ impl SeedableRng for StdRng {
841
StdRng(Hc128Rng::from_seed(seed))
842
}
843
844
- fn from_rng<R: Rng>(rng: &mut R) -> Result<Self, Error> {
+ fn from_rng<R: RngCore>(rng: &mut R) -> Result<Self, Error> {
845
Hc128Rng::from_rng(rng).map(|rng| StdRng(rng))
846
847
@@ -914,7 +914,7 @@ impl SeedableRng for SmallRng {
914
SmallRng(XorShiftRng::from_seed(seed))
915
916
917
918
XorShiftRng::from_rng(rng).map(|rng| SmallRng(rng))
919
920
0 commit comments