always render issue UUIDs as 128 bit hex numbers

This commit is contained in:
Sebastian Kuzminsky 2025-07-07 12:53:05 -06:00
parent 343e43a762
commit 172055c480
2 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ impl Issue {
pub fn new(dir: &std::path::Path) -> Result<Self, IssueError> {
let mut issue_dir = std::path::PathBuf::from(dir);
let rnd: u128 = rand::random();
issue_dir.push(&format!("{:0x}", rnd));
issue_dir.push(&format!("{:032x}", rnd));
std::fs::create_dir(&issue_dir)?;
Ok(Self {
description: String::from(""), // FIXME: kind of bogus to use the empty string as None