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

Make use rand::... gated on cfg(feature = "rand") #139

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

cbeck88
Copy link
Contributor

@cbeck88 cbeck88 commented Aug 4, 2020

This is no longer actively breaking our no_std build, but I think
it's still technically a minor bug, and further case of issue #108

This was #110
but that PR was very old and there were additional issues then which are moot now

This is no longer actively breaking our no_std build, but I think
it's still technically a minor bug, and further case of issue dalek-cryptography#108
@cbeck88 cbeck88 mentioned this pull request Aug 4, 2020
Copy link
Member

@isislovecruft isislovecruft left a comment

Choose a reason for hiding this comment

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

Hi @garbageslam. Thanks for the PR.

I'm happy to merge but this means that the SecretKey::generate function below won't work unless the "rand" feature is present, so it'll need to be feature gated as well. Additionally, I think the "rand" feature should be on by default, otherwise this breaks some backwards compatibility.

@isislovecruft
Copy link
Member

There's also a few other places where use rand::* occurs, in keypair.rs and batch.rs.

@isislovecruft isislovecruft changed the base branch from master to develop September 21, 2020 23:47
@isislovecruft isislovecruft merged commit 7155c07 into dalek-cryptography:develop Sep 21, 2020
isislovecruft added a commit to isislovecruft/ed25519-dalek that referenced this pull request Sep 21, 2020
isislovecruft added a commit to isislovecruft/ed25519-dalek that referenced this pull request Sep 21, 2020
huitseeker pushed a commit to huitseeker/ed25519-dalek that referenced this pull request Nov 3, 2020
huitseeker pushed a commit to huitseeker/ed25519-dalek that referenced this pull request Nov 3, 2020
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