blob: 4cb512892d972c0c54daf8c0cc56cade7c198509 (
plain)
1
2
3
4
5
6
7
|
# 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}"''
|