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

Implement traits from the 'rand' crate. #84

Merged
merged 4 commits into from
May 24, 2021
Merged

Conversation

lemmih
Copy link
Contributor

@lemmih lemmih commented May 24, 2021

Related issue: #83. Implements sampling in the Standard, Open01, and OpenClosed01 distributions. Uniform sampling is also implemented.

This is my first Rust PR and I wouldn't mind feedback.

@mbrubeck
Copy link
Collaborator

This looks great, thanks! I added a minor change to the tests to make them build on older versions of Rust.

@mbrubeck mbrubeck merged commit e90ce21 into reem:master May 24, 2021
@TannerRogalsky
Copy link

@mbrubeck Hi!

This isn't really anyone's fault but this PR has broken a number of projects that use this crate on the wasm32-unknown-unknown target. Reason being that rand, by default, uses getrandom which requires additional flags for use on that target.

I've resolved my personal issue disabling default features on your crate but I wanted you to know what impact this change has had.

Thanks for your crate!

@mbrubeck
Copy link
Collaborator

Oops! This is fixed by #90 in ordered-float 2.5.1.

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.

3 participants