We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e61f613 commit 302da04Copy full SHA for 302da04
tests/custom_common/mod.rs
@@ -10,6 +10,9 @@ pub fn len7_err() -> Error {
10
}
11
12
fn super_insecure_rng(buf: &mut [u8]) -> Result<(), Error> {
13
+ // `getrandom` guarantees it will not call any implementation if the output
14
+ // buffer is empty.
15
+ assert!(!buf.is_empty());
16
// Length 7 buffers return a custom error
17
if buf.len() == 7 {
18
return Err(len7_err());
0 commit comments