blob: ef8fe91fb848e78c8cb4ce269c4eb140d9ac0750 (
plain)
1
2
3
4
5
6
7
8
|
# Generate mostly random string with alphanumerics
# ARGS
# $1: num of chars to output, default 14
{ writeShellScriptBin, ... }:
writeShellScriptBin "randpass"
''tr -dc '[:alnum:]' </dev/urandom | head -c "''${1:-14}"''
|