From 6d2fce23d11ac882af04686e5ef0015504547d5d Mon Sep 17 00:00:00 2001 From: Neil Shen Date: Wed, 13 Dec 2023 12:44:02 +0800 Subject: [PATCH] Fix legacy OpenSSL build Signed-off-by: Neil Shen --- openssl/src/rand.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openssl/src/rand.rs b/openssl/src/rand.rs index b4c134b25..ef0f7685c 100644 --- a/openssl/src/rand.rs +++ b/openssl/src/rand.rs @@ -75,18 +75,16 @@ pub fn keep_random_devices_open(keep: bool) { #[cfg(test)] mod tests { - use super::{rand_bytes, rand_priv_bytes}; - #[test] fn test_rand_bytes() { let mut buf = [0; 32]; - rand_bytes(&mut buf).unwrap(); + super::rand_bytes(&mut buf).unwrap(); } #[test] #[cfg(ossl111)] fn test_rand_priv_bytes() { let mut buf = [0; 32]; - rand_priv_bytes(&mut buf).unwrap(); + super::rand_priv_bytes(&mut buf).unwrap(); } } -- GitLab