apply `global-context-not-secure` logic to Secp256k1::new

Disable auto-rerandomization for both global and local contexts.
This commit is contained in:
Andrew Poelstra 2022-07-14 14:06:41 +00:00
parent 6741aa0284
commit 748284633b
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}