Skip to content

Implement Rand for longer arrays #365

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

Merged
merged 1 commit into from
Apr 1, 2018
Merged

Conversation

HyeonuPark
Copy link
Contributor

impl Rand for [T; N] where N is 2^{6~12}

@pitdicker
Copy link
Contributor

Thank you for your PR!

That looks like a clever macro trick, I know of another place that could use it #354 (comment) 😄.

I am not against implementing this for more array sizes as you did, and 4096 seems like a very reasonable number of elements to stop. Curious what @dhardy thinks of it though.

Copy link
Member

@dhardy dhardy 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 to me!

@pitdicker since you have so many PRs open you know better than me which to merge first?

@pitdicker
Copy link
Contributor

I expect one or two will have to rebase... Let's do this one first!

@pitdicker pitdicker merged commit 8f7936f into rust-random:master Apr 1, 2018
pitdicker added a commit that referenced this pull request Apr 4, 2018
Implement Rand for longer arrays
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