cli generate random string

C++
#purely random 12 character string
openssl rand 12

# more useful random 12 character strings
openssl rand -base64 12

# random hex-code sequence
openssl rand -hex 12
Source

Also in C++: