about summary refs log tree commit diff
path: root/src/libstd/rand/rand_impls.rs
AgeCommit message (Collapse)AuthorLines
2014-03-12std: Move rand to librand.Huon Wilson-278/+0
This functionality is not super-core and so doesn't need to be included in std. It's possible that std may need rand (it does a little bit now, for io::test) in which case the functionality required could be moved to a secret hidden module and reexposed by librand. Unfortunately, using #[deprecated] here is hard: there's too much to mock to make it feasible, since we have to ensure that programs still typecheck to reach the linting phase.
2014-01-25Uppercase numeric constantsChris Wong-3/+3
The following are renamed: * `min_value` => `MIN` * `max_value` => `MAX` * `bits` => `BITS` * `bytes` => `BYTES` Fixes #10010.
2014-01-07stdtest: Fix all leaked trait importsAlex Crichton-2/+1
2014-01-04Don't allow newtype structs to be dereferenced. #6246Brian Anderson-6/+8
2013-12-20std: silence warnings when compiling test.Huon Wilson-0/+3
2013-11-18std::rand: wrappers for floats from [0,1] and (0,1).Huon Wilson-23/+73
Provide `Closed01` and `Open01` that generate directly from the closed/open intervals from 0 to 1, in contrast to the plain impls for f32 and f64 which generate the half-open [0,1). Fixes #7755.
2013-10-09std::rand: Make Rng.next_u32 non-default, waiting for #7771.Huon Wilson-0/+3
2013-10-09std::rand: Correct the implementation of Rand for f32 & f64.Huon Wilson-8/+29
2013-10-09std::rand: adjust the f32 & f64 Rand instances.Huon Wilson-7/+8
The f32 generator now just uses a single u32, and the f64 uses a single u64. This will make both significantly faster, especially on 64-bit platforms.
2013-10-09std::rand: move the Rand impls into a separate file for neatness.Huon Wilson-0/+199