aither-sandbox 0.22.0

Terminal-first command execution with heel sandboxing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Shared name generation utilities.

use human_hash::humanize;
use uuid::Uuid;

/// Generates a hyphenated slug using the default human-hash wordlist.
///
/// # Panics
///
/// Panics if `words` is zero.
pub fn random_word_slug(words: usize) -> String {
    assert!(words > 0, "word count must be positive");
    let id = Uuid::new_v4();
    humanize(&id, words)
}