@@ -216,6 +216,7 @@ use crate::util::{slice_as_uninit_mut, slice_assume_init_mut};
216216use core:: mem:: MaybeUninit ;
217217
218218mod error;
219+ mod lazy;
219220mod util;
220221// To prevent a breaking change when targets are added, we always export the
221222// register_custom_getrandom macro, so old Custom RNG crates continue to build.
@@ -298,7 +299,6 @@ cfg_if! {
298299 ) ) ] {
299300 mod util_libc;
300301 mod use_file;
301- mod lazy;
302302 mod linux_android;
303303 #[ path = "linux_android_with_fallback.rs" ] mod imp;
304304 } else if #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ] {
@@ -309,7 +309,6 @@ cfg_if! {
309309 #[ path = "solaris.rs" ] mod imp;
310310 } else if #[ cfg( target_os = "netbsd" ) ] {
311311 mod util_libc;
312- mod lazy;
313312 #[ path = "netbsd.rs" ] mod imp;
314313 } else if #[ cfg( target_os = "fuchsia" ) ] {
315314 #[ path = "fuchsia.rs" ] mod imp;
@@ -331,11 +330,9 @@ cfg_if! {
331330 } else if #[ cfg( windows) ] {
332331 #[ path = "windows.rs" ] mod imp;
333332 } else if #[ cfg( all( target_arch = "x86_64" , target_env = "sgx" ) ) ] {
334- mod lazy;
335333 #[ path = "rdrand.rs" ] mod imp;
336334 } else if #[ cfg( all( feature = "rdrand" ,
337335 any( target_arch = "x86_64" , target_arch = "x86" ) ) ) ] {
338- mod lazy;
339336 #[ path = "rdrand.rs" ] mod imp;
340337 } else if #[ cfg( all( feature = "js" ,
341338 any( target_arch = "wasm32" , target_arch = "wasm64" ) ,
0 commit comments