3
Create a string that contains random characters
(programming.dev)
The center for all discussion and news regarding C++.
You could take inspiration from Theodore Tso's pwgen: https://github.com/tytso/pwgen
It's a Unix utility in C commonly used on Linux and FreeBSD to make truly random passwords. It's the first thing I thought of when reading this.