1 2 3 4 5 6 7 8 9 10 11 12 13
use rand::random; use crate::{Gregorian, NodeId, State}; impl Default for State { fn default() -> Self { Self { last_ts: Gregorian::epoch(), node_id: NodeId::random(), seq: random(), } } }