You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this package alongside a project that uses the latest rand crate, and getting an incompatibility:
Compiling pbkdf2 v0.3.0error[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
The text was updated successfully, but these errors were encountered:
fubuloubu
added a commit
to fubuloubu/password-hashing
that referenced
this issue
Jul 1, 2019
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.
Using this package alongside a project that uses the latest
rand
crate, and getting an incompatibility:Solution: just upgrade the imports
The text was updated successfully, but these errors were encountered: