diff --git a/src/lib.rs b/src/lib.rs index b4e2f7a5d..62ae42e83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ //! and its derivatives. //! //! To minimize dependencies, some functions are feature-gated. To generate -//! random keys or to re-randomize a context object, compile with the "rand" +//! random keys or to re-randomize a context object, compile with the "rand-std" //! feature. To de/serialize objects with serde, compile with "serde". //! **Important**: `serde` encoding is **not** the same as consensus encoding! //! @@ -410,7 +410,7 @@ impl Secp256k1 { /// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance; /// see comment in libsecp256k1 commit d2275795f by Gregory Maxwell. Requires - /// compilation with "rand" feature. + /// compilation with "rand-std" feature. #[cfg(any(test, feature = "rand"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand")))] pub fn randomize(&mut self, rng: &mut R) { diff --git a/src/schnorr.rs b/src/schnorr.rs index e71391365..33a846140 100644 --- a/src/schnorr.rs +++ b/src/schnorr.rs @@ -251,7 +251,7 @@ impl Secp256k1 { /// Generates a random Schnorr `KeyPair` and its associated Schnorr `XOnlyPublicKey`. /// /// Convenience function for [KeyPair::new] and [KeyPair::public_key]. - /// Requires a signing-capable context and requires compilation with the "rand" feature. + /// Requires a signing-capable context and requires compilation with the "rand-std" feature. #[inline] #[cfg(any(test, feature = "rand"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand")))]