File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ mod_use!(cfg(target_os = "redox"), use_file);
190
190
mod_use ! ( cfg( target_os = "solaris" ) , solaris_illumos) ;
191
191
mod_use ! ( cfg( windows) , windows) ;
192
192
mod_use ! ( cfg( target_env = "sgx" ) , rdrand) ;
193
- mod_use ! ( cfg( target_os = "uefi" ) , rdrand) ;
193
+ mod_use ! ( cfg( all ( target_arch = "x86_64" , target_os = "uefi" ) ) , rdrand) ;
194
194
mod_use ! ( cfg( target_os = "wasi" ) , wasi) ;
195
195
196
196
mod_use ! (
@@ -232,7 +232,7 @@ mod_use!(
232
232
target_os = "openbsd" ,
233
233
target_os = "redox" ,
234
234
target_os = "solaris" ,
235
- target_os = "uefi" ,
235
+ all ( target_arch = "x86_64" , target_os = "uefi" ) ,
236
236
target_env = "sgx" ,
237
237
windows,
238
238
all(
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ unsafe fn rdrand() -> Result<[u8; WORD_SIZE], Error> {
31
31
Err ( Error :: UNKNOWN )
32
32
}
33
33
34
- #[ cfg( and ( target_env = "sgx" , not( target_feature = "rdrand" ) ) ) ]
34
+ #[ cfg( all ( target_env = "sgx" , not( target_feature = "rdrand" ) ) ) ]
35
35
compile_error ! ( "SGX targets must enable RDRAND to get randomness" ) ;
36
36
37
37
// TODO use is_x86_feature_detected!("rdrand") when that works in core. See:
You can’t perform that action at this time.
0 commit comments