We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4972f commit b7b999eCopy full SHA for b7b999e
src/context.rs
@@ -46,17 +46,7 @@ pub mod global {
46
static ONCE: Once = Once::new();
47
static mut CONTEXT: Option<Secp256k1<All>> = None;
48
ONCE.call_once(|| unsafe {
49
- let mut ctx = Secp256k1::new();
50
- #[cfg(all(
51
- not(target_arch = "wasm32"),
52
- feature = "rand",
53
- feature = "std",
54
- not(feature = "global-context-less-secure")
55
- ))]
56
- {
57
- ctx.randomize(&mut rand::thread_rng());
58
- }
59
- CONTEXT = Some(ctx);
+ CONTEXT = Some(Secp256k1::new());
60
});
61
unsafe { CONTEXT.as_ref().unwrap() }
62
}
0 commit comments