From 2a1516d9acde90d48b54e839ddfaa4ab3bcb164c Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 7 Feb 2021 14:20:03 -0800 Subject: [PATCH] argon2: add `rand` feature Enables the `rand_core` feature of `password-hash`. Enabled-by-default. --- argon2/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml index fcc3cafb..00c0c70b 100644 --- a/argon2/Cargo.toml +++ b/argon2/Cargo.toml @@ -25,7 +25,8 @@ password-hash = { version = "0.1", features = ["rand_core"] } rand_core = { version = "0.6", features = ["std"] } [features] -default = ["password-hash"] +default = ["password-hash", "rand"] +rand = ["password-hash/rand_core"] [package.metadata.docs.rs] all-features = true