about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-11-02 22:47:19 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-11-02 22:47:19 +1100
commite49be7aae3b33ba9afa1e517022fab3558af1aba (patch)
treedcfb25eba91b7b5297bceb4d167e3cf711ad79e7 /src/rustllvm/RustWrapper.cpp
parent3327ecca422046699315122345c6c050ab73804b (diff)
downloadrust-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