diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-22 10:40:07 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-22 11:54:14 -0700 |
| commit | 0dd4c1e7bd0178ca91ea13dfad6efc4cce728302 (patch) | |
| tree | 4f6d876f7b2804f5c47f71c0d436c8b0134fe924 /src/librand | |
| parent | 257a73ce8273d026f2af1a5021ae2d1a4e7b95e5 (diff) | |
| download | rust-0dd4c1e7bd0178ca91ea13dfad6efc4cce728302.tar.gz rust-0dd4c1e7bd0178ca91ea13dfad6efc4cce728302.zip | |
Remove a slew of old deprecated functions
Diffstat (limited to 'src/librand')
| -rw-r--r-- | src/librand/lib.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/librand/lib.rs b/src/librand/lib.rs index c7a29ff7285..a2486b6e047 100644 --- a/src/librand/lib.rs +++ b/src/librand/lib.rs @@ -323,12 +323,6 @@ pub trait Rng { } } - /// Shuffle a mutable slice in place. - #[deprecated="renamed to `.shuffle`"] - fn shuffle_mut<T>(&mut self, values: &mut [T]) { - self.shuffle(values) - } - /// Randomly sample up to `n` elements from an iterator. /// /// # Example @@ -387,23 +381,6 @@ pub trait SeedableRng<Seed>: Rng { fn from_seed(seed: Seed) -> Self; } -/// Create a random number generator with a default algorithm and seed. -/// -/// It returns the strongest `Rng` algorithm currently implemented in -/// pure Rust. If you require a specifically seeded `Rng` for -/// consistency over time you should pick one algorithm and create the -/// `Rng` yourself. -/// -/// This is a very expensive operation as it has to read randomness -/// from the operating system and use this in an expensive seeding -/// operation. If one does not require high performance generation of -/// random numbers, `task_rng` and/or `random` may be more -/// appropriate. -#[deprecated="use `task_rng` or `StdRng::new`"] -pub fn rng() -> StdRng { - StdRng::new().unwrap() -} - /// The standard RNG. This is designed to be efficient on the current /// platform. #[cfg(not(target_word_size="64"))] |
