Expand description
Utility to return a random hostname.
Re-exportsยง
use crate::RngExt as _;๐use rand::Rng;๐use rand::seq::IndexedRandom as _;๐
Constantsยง
- CHARSET ๐
- The characters that we use for the middle part of a hostname.
- MAX_LEN ๐
- Highest permissible hostname length.
- MIN_LEN ๐
- Lowest permissible hostname length.
- PREFIXES ๐
- The prefixes we put at the front of every random hostname, with terminating
.. - SUFFIXES ๐
- The suffixes that we use when picking a random hostname, with preceding
..
Functionsยง
- random_
hostname - Return a somewhat random-looking hostname.