From 3fa67624375ba529ad37f7786ca759224ff139fd Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Thu, 18 Nov 2021 11:28:21 +1100 Subject: [PATCH] Add link to referenced commit To save devs looking up the commit themselves add a link to it in the rustdoc. --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index af17993..018df93 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -414,9 +414,10 @@ impl Secp256k1 { (bytes + word_size - 1) / word_size } - /// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance; - /// see comment in libsecp256k1 commit d2275795f by Gregory Maxwell. Requires - /// compilation with "rand" feature. + /// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance. + /// + /// Requires compilation with "rand" feature. See comment by Gregory Maxwell in + /// [libsecp256k1](https://github.com/bitcoin-core/secp256k1/commit/d2275795ff22a6f4738869f5528fbbb61738aa48). #[cfg(any(test, feature = "rand"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand")))] pub fn randomize(&mut self, rng: &mut R) {