import random
import string


def gen_rand_str(length=8):
    """
    @brief Generates a random lowercase string.
    @param[in] length Desired length of the returned string.
    @returns a random string of the given length.
    """
    return ''.join(random.choice(string.ascii_lowercase) for i in range(length))