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

Upgrade to rand 0.7.0 #17

Closed
fubuloubu opened this issue Jul 1, 2019 · 1 comment · Fixed by #31
Closed

Upgrade to rand 0.7.0 #17

fubuloubu opened this issue Jul 1, 2019 · 1 comment · Fixed by #31

Comments

@fubuloubu
Copy link

Using this package alongside a project that uses the latest rand crate, and getting an incompatibility:

   Compiling pbkdf2 v0.3.0
error[E0432]: unresolved import `rand::OsRng`
 --> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/pbkdf2-0.3.0/src/simple.rs:7:12
  |
7 | use rand::{OsRng, RngCore};
  |            ^^^^^ no `OsRng` in the root

Solution: just upgrade the imports

fubuloubu added a commit to fubuloubu/password-hashing that referenced this issue Jul 1, 2019
@breard-r
Copy link

The rand dependency is required only for the include_simple feature. If you do not use the simple function then, in your project, you can specify default-features = false when including pbkdf2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants