ps-uuid 0.1.0-0

An opinionated UUID implementation.
Documentation
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(),
        }
    }
}