Generate a short hex string for fallback session IDs.
()
| 392 | |
| 393 | /// Generate a short hex string for fallback session IDs. |
| 394 | fn timestamp_hex() -> String { |
| 395 | use std::time::{SystemTime, UNIX_EPOCH}; |
| 396 | |
| 397 | let now = SystemTime::now() |
| 398 | .duration_since(UNIX_EPOCH) |
| 399 | .unwrap_or_default() |
| 400 | .as_millis(); |
| 401 | |
| 402 | format!("{:08x}", (now & 0xFFFF_FFFF) as u32) |
| 403 | } |
| 404 | |
| 405 | // --------------------------------------------------------------------------- |
| 406 | // Verb mapping |
nothing calls this directly
no outgoing calls
no test coverage detected