Skip to content

Commit 10979d6

Browse files
committed
rand_xoshiro: avoid dependency on rand
1 parent d467bad commit 10979d6

9 files changed

+8
-17
lines changed

rand_xoshiro/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ serde = { version = "1", optional=true }
2121
serde_derive = { version = "^1.0.38", optional=true }
2222

2323
[dev-dependencies]
24-
rand = { path = "..", version = "0.6", default-features=false } # needed for doctests
2524
# This is for testing serde, unfortunately we can't specify feature-gated dev
2625
# deps yet, see: https://github.com/rust-lang/cargo/issues/1596
2726
bincode = { version = "1" }

rand_xoshiro/src/xoroshiro128plus.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ impl Xoroshiro128Plus {
3535
/// parallel computations.
3636
///
3737
/// ```
38-
/// # extern crate rand;
3938
/// # extern crate rand_xoshiro;
4039
/// # fn main() {
41-
/// use rand::SeedableRng;
40+
/// use rand_xoshiro::rand_core::SeedableRng;
4241
/// use rand_xoshiro::Xoroshiro128Plus;
4342
///
4443
/// let rng1 = Xoroshiro128Plus::seed_from_u64(0);

rand_xoshiro/src/xoroshiro128starstar.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ impl Xoroshiro128StarStar {
3434
/// parallel computations.
3535
///
3636
/// ```
37-
/// # extern crate rand;
3837
/// # extern crate rand_xoshiro;
3938
/// # fn main() {
40-
/// use rand::SeedableRng;
39+
/// use rand_xoshiro::rand_core::SeedableRng;
4140
/// use rand_xoshiro::Xoroshiro128StarStar;
4241
///
4342
/// let rng1 = Xoroshiro128StarStar::seed_from_u64(0);

rand_xoshiro/src/xoshiro128plus.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ impl Xoshiro128Plus {
3232
/// parallel computations.
3333
///
3434
/// ```
35-
/// # extern crate rand;
3635
/// # extern crate rand_xoshiro;
3736
/// # fn main() {
38-
/// use rand::SeedableRng;
37+
/// use rand_xoshiro::rand_core::SeedableRng;
3938
/// use rand_xoshiro::Xoroshiro128StarStar;
4039
///
4140
/// let rng1 = Xoroshiro128StarStar::seed_from_u64(0);

rand_xoshiro/src/xoshiro128starstar.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ impl Xoshiro128StarStar {
3131
/// parallel computations.
3232
///
3333
/// ```
34-
/// # extern crate rand;
3534
/// # extern crate rand_xoshiro;
3635
/// # fn main() {
37-
/// use rand::SeedableRng;
36+
/// use rand_xoshiro::rand_core::SeedableRng;
3837
/// use rand_xoshiro::Xoroshiro128StarStar;
3938
///
4039
/// let rng1 = Xoroshiro128StarStar::seed_from_u64(0);

rand_xoshiro/src/xoshiro256plus.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ impl Xoshiro256Plus {
3232
/// parallel computations.
3333
///
3434
/// ```
35-
/// # extern crate rand;
3635
/// # extern crate rand_xoshiro;
3736
/// # fn main() {
38-
/// use rand::SeedableRng;
37+
/// use rand_xoshiro::rand_core::SeedableRng;
3938
/// use rand_xoshiro::Xoshiro256Plus;
4039
///
4140
/// let rng1 = Xoshiro256Plus::seed_from_u64(0);

rand_xoshiro/src/xoshiro256starstar.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ impl Xoshiro256StarStar {
3131
/// parallel computations.
3232
///
3333
/// ```
34-
/// # extern crate rand;
3534
/// # extern crate rand_xoshiro;
3635
/// # fn main() {
37-
/// use rand::SeedableRng;
36+
/// use rand_xoshiro::rand_core::SeedableRng;
3837
/// use rand_xoshiro::Xoshiro256StarStar;
3938
///
4039
/// let rng1 = Xoshiro256StarStar::seed_from_u64(0);

rand_xoshiro/src/xoshiro512plus.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ impl Xoshiro512Plus {
3434
/// parallel computations.
3535
///
3636
/// ```
37-
/// # extern crate rand;
3837
/// # extern crate rand_xoshiro;
3938
/// # fn main() {
40-
/// use rand::SeedableRng;
39+
/// use rand_xoshiro::rand_core::SeedableRng;
4140
/// use rand_xoshiro::Xoshiro512Plus;
4241
///
4342
/// let rng1 = Xoshiro512Plus::seed_from_u64(0);

rand_xoshiro/src/xoshiro512starstar.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ impl Xoshiro512StarStar {
3333
/// parallel computations.
3434
///
3535
/// ```
36-
/// # extern crate rand;
3736
/// # extern crate rand_xoshiro;
3837
/// # fn main() {
39-
/// use rand::SeedableRng;
38+
/// use rand_xoshiro::rand_core::SeedableRng;
4039
/// use rand_xoshiro::Xoshiro512StarStar;
4140
///
4241
/// let rng1 = Xoshiro512StarStar::seed_from_u64(0);

0 commit comments

Comments
 (0)