Add missing not

This commit is contained in:
Joe Richey 2019-06-14 02:10:51 -07:00
parent 94440e117b
commit fc8ab62f59

View File

@ -49,7 +49,7 @@ fn is_rdrand_supported() -> bool {
}
pub fn getrandom_inner(dest: &mut [u8]) -> Result<(), Error> {
if is_rdrand_supported() {
if !is_rdrand_supported() {
return Err(Error::UNAVAILABLE);
}