Skip to content

Commit

Permalink
apply global-context-not-secure logic to Secp256k1::new
Browse files Browse the repository at this point in the history
Disable auto-rerandomization for both global and local contexts.
  • Loading branch information
apoelstra committed Jul 14, 2022
1 parent 6741aa0 commit 7482846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.rs
Expand Up @@ -202,7 +202,7 @@ mod alloc_only {
size,
};

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

0 comments on commit 7482846

Please sign in to comment.