Skip to content
Snippets Groups Projects
Commit 6d2fce23 authored by Neil Shen's avatar Neil Shen
Browse files

Fix legacy OpenSSL build


Signed-off-by: default avatarNeil Shen <overvenus@gmail.com>
parent ec8f096e
Branches
No related tags found
No related merge requests found
......@@ -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();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment