pub struct Seed {
pub now_unix_ms: u64,
pub seed: u64,
}Expand description
What circlet.seed hands the guest: the host-stamped wall clock and a
random seed — the ONLY nondeterminism a guest can ever see, delivered as
a recorded input rather than an ambient power. One pair per cast: every
call inside one cast returns the same values (a reflex is conceptually
instantaneous), the transcript records them once, and replay serves the
recording — so “what time is it” stops being the reason a guest author
reaches outside the circle, and determinism survives.
Fields§
§now_unix_ms: u64The wall clock at the cast, unix milliseconds, host-stamped.
seed: u64A random value, host-stamped. Feed it to any deterministic PRNG.
Trait Implementations§
impl Copy for Seed
Source§impl<'de> Deserialize<'de> for Seed
impl<'de> Deserialize<'de> for Seed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Seed
impl StructuralPartialEq for Seed
Auto Trait Implementations§
impl Freeze for Seed
impl RefUnwindSafe for Seed
impl Send for Seed
impl Sync for Seed
impl Unpin for Seed
impl UnsafeUnpin for Seed
impl UnwindSafe for Seed
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more