2 ms·
Even if one can just use `pwgen` on most linux plateforms, it's a fun exercice, and one that is always welcome in classrooms. You need to parse the cmd, make s
by sametmax 8y ago
Even if one can just use `pwgen` on most linux plateforms, it's a fun exercice, and one that is always welcome in classrooms.
You need to parse the cmd, make sure you use the proper random generator, and accumulate different source of characters.
Options such as --allow-unicode, --exclude-similar-chars or --group-chars all provide small additional challenges in different areas.
It's something all students should code at least once, if not for pleasure, at least for practice.
But honestly I find it fun enough that I just wrote one again after reading the article. I'm pretty sure a timeline of all the attempts is telling of ones progression in style :)