Files
notes/divers/random_string_bash.txt
2026-03-12 22:01:38 +01:00

4 lines
147 B
Plaintext

# generating random string in bash
echo $RANDOM | md5sum | head -c 20; echo;
cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20; echo;