Skip to content

Commit dc5236a

Browse files
committed
Fix small_rng feature
1 parent 64abb06 commit dc5236a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#[doc(no_inline)] pub use crate::distributions::Distribution;
2222
#[doc(no_inline)] pub use crate::rngs::StdRng;
2323
#[cfg(feature="small_rng")]
24-
#[doc(no_inline)] pub use rngs::SmallRng;
24+
#[doc(no_inline)] pub use crate::rngs::SmallRng;
2525
#[doc(no_inline)] #[cfg(feature="std")] pub use crate::rngs::ThreadRng;
2626
#[doc(no_inline)] pub use crate::{Rng, RngCore, CryptoRng, SeedableRng};
2727
#[doc(no_inline)] #[cfg(feature="std")] pub use crate::{random, thread_rng};

src/rngs/small.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
//! A small fast RNG
1010
11-
use {RngCore, SeedableRng, Error};
11+
use rand_core::{RngCore, SeedableRng, Error};
1212

1313
#[cfg(all(not(target_os = "emscripten"), target_pointer_width = "64"))]
14-
type Rng = ::rand_pcg::Pcg64Mcg;
14+
type Rng = rand_pcg::Pcg64Mcg;
1515
#[cfg(not(all(not(target_os = "emscripten"), target_pointer_width = "64")))]
16-
type Rng = ::rand_pcg::Pcg32;
16+
type Rng = rand_pcg::Pcg32;
1717

1818
/// A small-state, fast non-crypto PRNG
1919
///

0 commit comments

Comments
 (0)