Skip to content

Commit 6d2fce2

Browse files
committed
Fix legacy OpenSSL build
Signed-off-by: Neil Shen <overvenus@gmail.com>
1 parent ec8f096 commit 6d2fce2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

openssl/src/rand.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,16 @@ pub fn keep_random_devices_open(keep: bool) {
7575

7676
#[cfg(test)]
7777
mod tests {
78-
use super::{rand_bytes, rand_priv_bytes};
79-
8078
#[test]
8179
fn test_rand_bytes() {
8280
let mut buf = [0; 32];
83-
rand_bytes(&mut buf).unwrap();
81+
super::rand_bytes(&mut buf).unwrap();
8482
}
8583

8684
#[test]
8785
#[cfg(ossl111)]
8886
fn test_rand_priv_bytes() {
8987
let mut buf = [0; 32];
90-
rand_priv_bytes(&mut buf).unwrap();
88+
super::rand_priv_bytes(&mut buf).unwrap();
9189
}
9290
}

0 commit comments

Comments
 (0)