openssl ubuntu random string generator

C++
openssl rand -hex 12

Source

Also in C++: