#[cfg(not(feature = "std"))]
use rand::rngs::SmallRng;
#[cfg(feature = "std")]
use rand::rngs::StdRng;
#[cfg(feature = "std")]
pub type NdArrayRng = StdRng;
#[cfg(not(feature = "std"))]
pub type NdArrayRng = SmallRng;
#[cfg(not(feature = "std"))]
use rand::SeedableRng;
#[cfg(feature = "std")]
pub fn get_seeded_rng() -> NdArrayRng {
burn_std::rand::get_seeded_rng()
}
#[cfg(not(feature = "std"))]
pub fn get_seeded_rng() -> NdArrayRng {
const SEED: u64 = const_random::const_random!(u64);
SmallRng::seed_from_u64(SEED)
}