I see an inconsistency here with using the `rand` module. According to the imports, the `rand.` prefix can be just scrapped, because the `generate_random_string` function is already imported separately.

*applies also on all following `rand.` occurences*