apply `global-context-not-secure` logic to Secp256k1::new
Disable auto-rerandomization for both global and local contexts.
This commit is contained in:
parent
6741aa0284
commit
748284633b
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue