chronis 0.5.3

Event-sourced task CLI powered by the AllSource embedded database (all-source.xyz)
Documentation
1
2
3
4
5
6
7
use rand::RngExt;

/// Generate a short, human-friendly task ID like `t-a3f1`.
pub fn generate_task_id() -> String {
    let n: u16 = rand::rng().random();
    format!("t-{n:04x}")
}