We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b84c545 commit 96a3a05Copy full SHA for 96a3a05
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