summary refs log tree commit diff
path: root/randpass
blob: 180fd3e11ca865f6a2b6cb62394f8e0cbd16d147 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
#
# Generate mostly random string with alphanumerics
#
# ARGS
#   $1: num of chars to output, default 14

tr -dc '[:alnum:]' </dev/urandom | head -c "${1:-14}"