import random
import pathlib


def _random_name() -> str:
    """ Pick (hopefully unique) random name for a machine
    credit for the words_alpha.txt file https://github.com/dwyl/english-words
    """
    name = random.choice(
        [word for word in open(pathlib.Path(__file__).parent / "words_alpha.txt")]
    )[:-1]
    return name