8 lines
174 B
Bash
Executable File
8 lines
174 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Would produce x2 the length provided
|
|
# openssl rand -hex $1
|
|
|
|
LENGTH=$1
|
|
tr -cd '[:alnum:]' < /dev/urandom | fold -w "${LENGTH}" | head -n 1 | tr -d '\n' ; echo
|