Skip to main content

Module rand_hostname

Module rand_hostname 

Source
Expand description

Utility to return a random hostname.

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.