We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfc0d1c commit a1ddafbCopy full SHA for a1ddafb
tests/rdrand.rs
@@ -11,5 +11,10 @@ mod rdrand;
11
#[path = "../src/util.rs"]
12
mod util;
13
14
-use rdrand::getrandom_inner as getrandom_impl;
+// The rdrand implementation has the signature of getrandom_uninit(), but our
15
+// tests expect getrandom_impl() to have the signature of getrandom().
16
+fn getrandom_impl(dest: &mut [u8]) -> Result<(), Error> {
17
+ rdrand::getrandom_inner(unsafe { util::slice_as_uninit_mut(dest) })?;
18
+ Ok(())
19
+}
20
mod common;
0 commit comments