#[allow(missing_copy_implementations)]
#[derive(Debug)]
pub struct Seed(pub(crate) u64);
impl Seed {
pub const fn unsafe_new(seed: u64) -> Self {
Self(seed)
}
#[cfg(feature = "rng")]
pub fn rng(self) -> crate::Random {
crate::Random::from_seed(self)
}
}
impl std::fmt::Display for Seed {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}