diff --git a/src/context.rs b/src/context.rs index 12afb0f98..9f6dd8fb8 100644 --- a/src/context.rs +++ b/src/context.rs @@ -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()); }