Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rust Openssl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public Repositories
Rust Openssl
Commits
6d2fce23
Commit
6d2fce23
authored
1 year ago
by
Neil Shen
Browse files
Options
Downloads
Patches
Plain Diff
Fix legacy OpenSSL build
Signed-off-by:
Neil Shen
<
overvenus@gmail.com
>
parent
ec8f096e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
openssl/src/rand.rs
+2
-4
2 additions, 4 deletions
openssl/src/rand.rs
with
2 additions
and
4 deletions
openssl/src/rand.rs
+
2
−
4
View file @
6d2fce23
...
...
@@ -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
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment