Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare new releases, from_rng Endianness and inlining #815

Merged
merged 14 commits into from Jun 6, 2019

Conversation

dhardy
Copy link
Member

@dhardy dhardy commented Jun 5, 2019

Prepare the 0.7 pre-release and releases of many other crates (the only one without changes is PCG, though some are just doc).

Important: this is missing rand_distr which I asked @vks to look at.

Also closes #572, most of which was already implemented (probably as part of #800).

rand_xoshiro/CHANGELOG.md Outdated Show resolved Hide resolved
@dhardy
Copy link
Member Author

dhardy commented Jun 5, 2019

Rebased with your suggestions

Copy link
Collaborator

@vks vks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! The tests fail apparently because of the rand requirement of rand_distr.

@dhardy
Copy link
Member Author

dhardy commented Jun 5, 2019

Hopefully that should fix the tests.

@dhardy
Copy link
Member Author

dhardy commented Jun 6, 2019

Turns out #572 isn't just documentation: the custom implementation for XorShiftRng needed fixing. Curiously the custom implementations for the ISAAC RNGs already have fixed Endianness.

@dhardy
Copy link
Member Author

dhardy commented Jun 6, 2019

Use of #[inline] adjusted (see #817). Benchmarks mostly look similar or a little better (especially init_hc128: 4860 → 4448).

@dhardy dhardy changed the title Prepare new releases Prepare new releases, from_rng Endianness and inlining Jun 6, 2019
@dhardy dhardy merged commit fa83071 into rust-random:master Jun 6, 2019
@dhardy dhardy deleted the from-rng branch June 6, 2019 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

from_rng and value-stability
2 participants