4 releases (breaking)
Uses old Rust 2015
0.3.0 | Jun 12, 2018 |
---|---|
0.2.0 | Nov 14, 2017 |
0.1.0 | Nov 14, 2017 |
0.0.1 | Jun 23, 2016 |
#31 in #period
17KB
281 lines
xoroshiro
The crate is deprecated in favor of the xoshiro crate.
Rust implementation of the xoroshiro128+, xorshift1024*φ and splitmix64 random number generators.
License
xoroshiro
is primarily distributed under the terms of both the MIT license and
the Apache License (Version 2.0).
See LICENSE-APACHE, and LICENSE-MIT for details.
Other projects
- Parts of the code is were taken from this pull request.
- Some of the test vectors were taken and adapted from the xorshift crate.
- The xoroshiro128 crate is similar to this one.
lib.rs
:
This crate is deprecated in favor of the xoshiro crate.
This crate provides the xoroshiro128+, xorshift1024*φ and splitmix64 random number generators.
It is recommended to use XoroShiro128
unless you need a period larger
than 2^128 - 1, where XorShift1024
with a period of 2^1024 - 1 is more
appropriate. SplitMix64
is only used to initialize the other generators,
it should not be used directly, unless you are sure that a period of
2^64 - 1 is enough.
Dependencies
~175KB