diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-11-02 22:47:19 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-11-02 22:47:19 +1100 |
| commit | e49be7aae3b33ba9afa1e517022fab3558af1aba (patch) | |
| tree | dcfb25eba91b7b5297bceb4d167e3cf711ad79e7 /src/rustllvm/RustWrapper.cpp | |
| parent | 3327ecca422046699315122345c6c050ab73804b (diff) | |
| download | rust-e49be7aae3b33ba9afa1e517022fab3558af1aba.tar.gz rust-e49be7aae3b33ba9afa1e517022fab3558af1aba.zip | |
rand: Add next_f64/f32 to Rng.
Some random number generates output floating point numbers directly, so by providing these methods all the functionality in librand is available with high-performance for these things. An example of such an is dSFMT (Double precision SIMD-oriented Fast Mersenne Twister). The choice to use the open interval [0, 1) has backing elsewhere, e.g. GSL (GNU Scientific Library) uses this range, and dSFMT supports generating this natively (I believe the most natural range for that library is [1, 2), but that is not totally sensible from a user perspective, and would trip people up). Fixes https://github.com/rust-lang/rfcs/issues/425.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
