diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-04-26 23:23:49 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-04-30 08:40:05 +1000 |
| commit | 30266a788f8399790024f0ffb7618cdd2c50935b (patch) | |
| tree | 3850b597187c39be2fc9f2b631d7501076e4d59e /src/rt/rust_run_program.cpp | |
| parent | dbcc3fe63a71d92d194d99dfd5e73fb62d09e79a (diff) | |
| download | rust-30266a788f8399790024f0ffb7618cdd2c50935b.tar.gz rust-30266a788f8399790024f0ffb7618cdd2c50935b.zip | |
core: a pure Rust implementation of the ISAAC RNG.
This replaces the wrapper around the runtime RNG with a pure Rust implementation of the same algorithm. This is faster (up to 5x), and is hopefully safer. There is still much room for optimisation: testing by summing 100,000,000 random `u32`s indicates this is about 40-50% slower than the pure C implementation (running as standalone executable, not in the runtime).
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
