Skip to content

Commit

Permalink
crypto-common: weakly activate rand_core/getrandom
Browse files Browse the repository at this point in the history
When both `getrandom` and `rand_core` are enabled, activates the
`rand_core/getrandom` feature, which makes `OsRng` available as
`crypto_common::rand_core::OsRng`.
  • Loading branch information
tarcieri committed Nov 12, 2023
1 parent 1d0810d commit edb7a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crypto-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ rand_core = { version = "0.6.4", optional = true }
getrandom = { version = "0.2", optional = true }

[features]
getrandom = ["dep:getrandom", "rand_core?/getrandom"]
std = []

[package.metadata.docs.rs]
Expand Down

0 comments on commit edb7a69

Please sign in to comment.