scx_truther 0.3.0

A non-competitive demo scheduler for sched-ext (rustland-core)
Documentation
1
2
3
4
5
6
7
8
use std::time::{SystemTime, UNIX_EPOCH};

pub fn seed_from_system() -> u64 {
    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .map(|d| d.as_nanos() as u64)
        .unwrap_or(0)
}