Skip to content

Commit 8ae20b5

Browse files
committed
Add missing not
1 parent 949949a commit 8ae20b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rdrand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn is_rdrand_supported() -> bool {
4949
}
5050

5151
pub fn getrandom_inner(dest: &mut [u8]) -> Result<(), Error> {
52-
if is_rdrand_supported() {
52+
if !is_rdrand_supported() {
5353
return Err(Error::UNAVAILABLE);
5454
}
5555

0 commit comments

Comments
 (0)