Skip to content

Commit 7482846

Browse files
committed
apply global-context-not-secure logic to Secp256k1::new
Disable auto-rerandomization for both global and local contexts.
1 parent 6741aa0 commit 7482846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ mod alloc_only {
202202
size,
203203
};
204204

205-
#[cfg(feature = "rand-std")]
205+
#[cfg(all(feature = "rand-std", not(feature = "global-context-less-secure")))]
206206
{
207207
ctx.randomize(&mut rand::thread_rng());
208208
}

0 commit comments

Comments
 (0)