Skip to content

Commit 5db0e46

Browse files
committed
fix
1 parent 674ca86 commit 5db0e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linux_rustix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn getrandom_inner(mut dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
1212
Ok(0) => return Err(Error::UNEXPECTED),
1313
Ok(res_len) => {
1414
dest = dest.get_mut(res_len..).ok_or(Error::UNEXPECTED)?;
15-
if !dest.is_empty() {
15+
if dest.is_empty() {
1616
return Ok(());
1717
}
1818
}

0 commit comments

Comments
 (0)